From 8bd770e343cf9dd337eac5635fe1a985529b39bd Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 15:05:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20ci:=20fetch=20tags=20in=20the=20?= =?UTF-8?q?release=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The version gate resolves `v$VERSION` with git, but actions/checkout does not fetch tags at its default depth — so the guard would have failed every release with "No tag v0.3.0" whether or not the tag existed. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01SAcqrz3FcadkYr3xG32CjK --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2d25ff..d40b306 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + # Tags are not fetched at the default depth, and the version gate below + # resolves one — without this it fails on every release, tag or no tag. + fetch-depth: 0 - uses: actions/setup-node@v4 with: