Skip to content

Commit 0aab3a3

Browse files
author
strausr
committed
fix: add initial tag creation and maintenance branch pattern for semantic-release
1 parent 5cec039 commit 0aab3a3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ jobs:
6666

6767
- run: npm test --if-present
6868

69+
- name: Create initial tag if needed
70+
run: |
71+
if ! git rev-parse --verify "v1.0.0-beta.1" >/dev/null 2>&1; then
72+
echo "Creating initial tag v1.0.0-beta.1"
73+
git tag -a "v1.0.0-beta.1" -m "chore: initial beta release"
74+
git push origin "v1.0.0-beta.1" || echo "Tag push failed (may not have permission or tag exists)"
75+
else
76+
echo "Tag v1.0.0-beta.1 already exists"
77+
fi
78+
6979
- name: Debug semantic-release config
7080
run: |
7181
echo "=== .releaserc.json ==="

.releaserc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"branches": [
3+
"+([0-9])?(.{+([0-9]),x}).x",
34
{
45
"name": "main",
56
"prerelease": "beta"

0 commit comments

Comments
 (0)