File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2323 git config --global user.name "github-actions[bot]"
2424 git config --global user.email "github-actions[bot]@users.noreply.github.com"
2525 git fetch origin main
26- git checkout main
27- git checkout -b temp-preview-branch
26+ git checkout -B main origin/main
2827 git merge --no-ff origin/${{ github.event.pull_request.head.ref }} -m "temp: simulate PR merge for release preview"
28+ echo "Current branch: $(git branch --show-current)"
29+ echo "Latest commits:"
30+ git log --oneline -5
2931
3032 - name : Setup Node.js
3133 uses : actions/setup-node@v4
4446 id : semantic
4547 run : |
4648 # Run semantic-release in dry-run mode and capture output
47- OUTPUT=$(npx semantic-release --dry-run --no-ci 2>&1 || true)
49+ # Override branch config to treat current branch as 'main'
50+ OUTPUT=$(npx semantic-release --dry-run --no-ci --branches main 2>&1 || true)
4851 echo "$OUTPUT"
4952
5053 # Extract version information
You can’t perform that action at this time.
0 commit comments