Skip to content

Commit 86fd306

Browse files
author
strausr
committed
fix: improve git branch setup for semantic-release detection
1 parent 241ef66 commit 86fd306

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,17 @@ jobs:
4545
ref: main
4646
fetch-depth: 0
4747

48+
- name: Setup git branch
49+
run: |
50+
git checkout -B main
51+
git branch --set-upstream-to=origin/main main
52+
4853
- name: Debug branch info
4954
run: |
5055
echo "Current branch: $(git branch --show-current)"
5156
echo "All branches: $(git branch -a)"
5257
echo "Git remote: $(git remote -v)"
58+
echo "Git status: $(git status)"
5359
5460
- uses: actions/setup-node@v4
5561
with:

.releaserc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"branches": [
33
{
44
"name": "main",
5-
"channel": "beta",
65
"prerelease": "beta"
76
}
87
],

0 commit comments

Comments
 (0)