We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e4c75d commit 789ac3cCopy full SHA for 789ac3c
.github/workflows/release-preview.yaml
@@ -49,7 +49,13 @@ jobs:
49
id: semantic
50
env:
51
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
+ # Override GitHub's environment variables to make semantic-release see the actual PR branch
53
+ GITHUB_REF: refs/heads/${{ github.event.pull_request.head.ref }}
54
+ GITHUB_REF_NAME: ${{ github.event.pull_request.head.ref }}
55
+ GITHUB_HEAD_REF: ""
56
run: |
57
+ echo "Running semantic-release on branch: ${{ github.event.pull_request.head.ref }}"
58
+
59
# Run semantic-release with inline package installation (same as your local command)
60
OUTPUT=$(npx --package semantic-release --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release 2>&1 || true)
61
echo "$OUTPUT"
0 commit comments