Skip to content

Commit 8723079

Browse files
author
strausr
committed
chore: remove one-time v1.0.0-beta.1 tag step from release workflow
1 parent e57f09e commit 8723079

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,6 @@ jobs:
9595
git notes --ref semantic-release-v1.0.0-beta.1 add -f -m '{"channels":["beta"]}' v1.0.0-beta.1
9696
echo "Added semantic-release note to v1.0.0-beta.1 (local only for dry run)."
9797
98-
# One-time fix: v1.0.0-beta.1 existed before semantic-release (manual publish).
99-
# It has no channel note, so semantic-release ignores it and tries to create the tag again → "tag already exists".
100-
# Fix: delete the broken tag so semantic-release can create it properly (with note). After this run, remove this step.
101-
- name: Remove broken v1.0.0-beta.1 tag so semantic-release can create it (one-time)
102-
if: github.event.inputs.dry_run != 'true'
103-
run: |
104-
set -e
105-
if git rev-parse --verify "v1.0.0-beta.1" >/dev/null 2>&1; then
106-
echo "Removing existing v1.0.0-beta.1 (no channel note); semantic-release will recreate it with note."
107-
git tag -d v1.0.0-beta.1 2>/dev/null || true
108-
git push origin ":refs/tags/v1.0.0-beta.1" || true
109-
git push origin ":refs/notes/semantic-release-v1.0.0-beta.1" 2>/dev/null || true
110-
echo "Done. semantic-release will create v1.0.0-beta.1 from scratch."
111-
else
112-
echo "Tag v1.0.0-beta.1 does not exist; semantic-release will create it."
113-
fi
114-
11598
- name: Dry run mode notice
11699
if: github.event.inputs.dry_run == 'true'
117100
run: |
@@ -152,7 +135,6 @@ jobs:
152135
npx semantic-release --dry-run 2>&1 | tee semantic-release.log || true
153136
grep -oE "The next release version is [^[:space:]]+" semantic-release.log 2>/dev/null | sed 's/The next release version is //' > next-version.txt || echo "" > next-version.txt
154137
else
155-
# Tag + note are prepared in "Prepare v1.0.0-beta.1 for semantic-release" step
156138
npx semantic-release
157139
fi
158140

0 commit comments

Comments
 (0)