We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7787581 commit 6b0e394Copy full SHA for 6b0e394
.github/workflows/publish.yml
@@ -22,6 +22,17 @@ jobs:
22
with:
23
node-version: 24
24
cache: 'npm'
25
+ - name: Compare release tag with package.json
26
+ if: github.event_name == 'release'
27
+ run: |
28
+ RELEASE_VERSION=${GITHUB_REF#refs/tags/v}
29
+ PKG_VERSION=$(node -p "require('./package.json').version")
30
+
31
+ echo "Release tag: $RELEASE_VERSION"
32
+ echo "package.json: $PKG_VERSION"
33
34
+ [ "$RELEASE_VERSION" = "$PKG_VERSION" ] || { echo "❌ Mismatch"; exit 1; }
35
36
- run: npm ci
37
- run: npm test
38
env:
0 commit comments