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 <noreply@anthropic.com>
This commit is contained in:
mohitagw15856
2026-06-17 22:50:34 +01:00
committed by GitHub
parent abdf20acf3
commit 1d18e50c68
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
- name: Verify release tag matches package.json version - name: Verify release tag matches package.json version
if: github.event_name == 'release' if: github.event_name == 'release'
run: | 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")" PKG="$(node -p "require('./package.json').version")"
echo "release tag: $TAG | package.json: $PKG" echo "release tag: $TAG | package.json: $PKG"
if [ "$TAG" != "$PKG" ]; then if [ "$TAG" != "$PKG" ]; then