Skip to content

Commit 125a1b5

Browse files
OyaAIProdclaude
andcommitted
ci: push annotated release tags and create GitHub Releases
git push --follow-tags skipped the lightweight tags, so releases left no tags on origin and the Releases page stayed empty. Annotate the tag, push it explicitly, and create a GitHub Release with generated notes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4d9bf53 commit 125a1b5

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,18 @@ jobs:
6767
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
6868
git add packages/core/package.json packages/server/package.json bun.lock
6969
git commit -m "release: v$VERSION [skip ci]"
70-
git tag "v$VERSION"
71-
git push --follow-tags
70+
# Annotated tag pushed explicitly. `git push --follow-tags` silently skips
71+
# lightweight tags, which is why earlier releases left no tags on origin.
72+
git tag -a "v$VERSION" -m "v$VERSION"
73+
git push origin HEAD:main
74+
git push origin "v$VERSION"
75+
76+
- name: Create GitHub Release
77+
env:
78+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
run: |
80+
VERSION=$(node -p "require('./packages/core/package.json').version")
81+
gh release create "v$VERSION" \
82+
--title "v$VERSION" \
83+
--generate-notes \
84+
--verify-tag

0 commit comments

Comments
 (0)