mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Enable publishing beta release
This commit is contained in:
parent
793e9e66a0
commit
a26d624cf9
1 changed files with 7 additions and 2 deletions
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
|
|
@ -53,7 +53,12 @@ jobs:
|
||||||
npm test
|
npm test
|
||||||
check_if_version_upgraded:
|
check_if_version_upgraded:
|
||||||
name: Check if version upgrade
|
name: Check if version upgrade
|
||||||
if: github.event_name == 'push'
|
# We run this only if it's a push on the default branch or if it's a PR from a
|
||||||
|
# branch (meaning not a PR from a fork). It would be more straightforward to test if secrets.NPM_TOKEN is
|
||||||
|
# defined but GitHub Action don't allow it yet.
|
||||||
|
if: |
|
||||||
|
github.event_name == 'push' ||
|
||||||
|
github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
outputs:
|
outputs:
|
||||||
|
|
@ -103,7 +108,7 @@ jobs:
|
||||||
target_commitish: ${{ github.ref }}
|
target_commitish: ${{ github.ref }}
|
||||||
body: ${{ steps.step1.outputs.body }}
|
body: ${{ steps.step1.outputs.body }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: ${{ needs.check_if_version_upgraded.outputs.to_version.is_release_beta == 'true' }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue