Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,13 @@ jobs:
- name: Release Beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# For a workflow_run event, GITHUB_REF is the ref of the workflow FILE (the repo's
# default branch, main) rather than the branch that triggered it (develop) β€” even
# though the checkout step above explicitly checks out develop's commit. semantic-
# release's env-ci detection reads only GITHUB_REF to pick the release branch, so
# left alone it decides it's releasing from main and tries to push there, which the
# branch protection rules reject. This job only ever runs for develop (see the `if:`
# above), so it's always correct to force it here.
GITHUB_REF: refs/heads/develop
GITHUB_REF_NAME: develop
run: npm run release