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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user