Skip to content

Commit ebd8291

Browse files
author
strausr
committed
fix: remove duplicate main branch config and improve tag fetching
1 parent c7cb003 commit ebd8291

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ permissions:
99
issues: write
1010
pull-requests: write
1111

12+
# Allow GitHub Actions to bypass branch protection
13+
# This is required for semantic-release to push version updates
14+
1215
jobs:
1316
release:
1417
runs-on: ubuntu-latest
@@ -47,9 +50,18 @@ jobs:
4750

4851
- name: Setup git branch
4952
run: |
50-
git fetch --all --tags
53+
git fetch --all --tags --force
5154
git checkout -B main
5255
git branch --set-upstream-to=origin/main main
56+
57+
# Show all tags for debugging
58+
echo "=== All git tags ==="
59+
git tag -l
60+
echo ""
61+
62+
# Show current package.json version
63+
echo "=== Current package.json version ==="
64+
node -p "require('./package.json').version"
5365
5466
- name: Debug branch info
5567
run: |

.releaserc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"branches": [
3-
"main",
43
{
54
"name": "main",
65
"prerelease": "beta"

0 commit comments

Comments
 (0)