From 0f96154264a6cbc17f039dd37ab159f2b16f6b0c Mon Sep 17 00:00:00 2001 From: Anto Subash Date: Fri, 27 Mar 2026 09:54:16 +0100 Subject: [PATCH] fix(ci): use annotated tag and checkout by tag ref in release workflow Lightweight tags created by `git tag` are not pushed by `--follow-tags`, causing `--verify-tag` to fail in the github-release job. Switch to annotated tags and check out by tag ref instead of SHA. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5dc84eda..a7538268 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,7 +97,7 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" git add version.json git commit -m "release: v${VERSION}" - git tag "v${VERSION}" + git tag -a "v${VERSION}" -m "v${VERSION}" git push origin main --follow-tags echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" @@ -167,7 +167,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ needs.version.outputs.sha }} + ref: v${{ needs.version.outputs.version }} fetch-depth: 0 - name: Create GitHub Release