Skip to content

Commit 550e09e

Browse files
angristanclaude
andcommitted
fix(ci): checkout latest tag before running GoReleaser
Ensures GoReleaser runs on the exact commit that semantic-release tagged, fixing the "tag was not made against commit" error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 94fec2d commit 550e09e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ jobs:
7373
env:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7575
run: npx semantic-release
76+
- name: Fetch latest tag
77+
run: |
78+
git fetch --tags
79+
latest_tag=$(git describe --tags --abbrev=0)
80+
git checkout "$latest_tag"
7681
- name: Run GoReleaser
7782
uses: goreleaser/goreleaser-action@v6
7883
with:

0 commit comments

Comments
 (0)