Skip to content

Commit 8d60de0

Browse files
author
rahul-infra
committed
made changes in preview release file
1 parent e538e0e commit 8d60de0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release-preview.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ jobs:
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
@@ -44,7 +46,8 @@ jobs:
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

0 commit comments

Comments
 (0)