From 1d18e50c684b306f339698a539c41e6ec8367ce1 Mon Sep 17 00:00:00 2001 From: mohitagw15856 <119053560+mohitagw15856@users.noreply.github.com> Date: Wed, 17 Jun 2026 22:50:34 +0100 Subject: [PATCH] Fix npm-publish tag check to accept capital-V tags (#31) The release tag check stripped only a lowercase 'v', so a tag like V17.0.0 failed against package.json 17.0.0. Strip a leading v OR V. Claude-Session: https://claude.ai/code/session_016JWn5jRD5tcEFKrubjQ6Px Co-authored-by: Claude --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3a8afc4..1c3ad1b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -36,7 +36,7 @@ jobs: - name: Verify release tag matches package.json version if: github.event_name == 'release' run: | - TAG="${GITHUB_REF_NAME#v}" + TAG="${GITHUB_REF_NAME#[vV]}" # strip a leading v or V (v17.0.0 / V17.0.0) PKG="$(node -p "require('./package.json').version")" echo "release tag: $TAG | package.json: $PKG" if [ "$TAG" != "$PKG" ]; then