We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 302a644 commit 130e5bcCopy full SHA for 130e5bc
1 file changed
.github/workflows/publish.yml
@@ -13,7 +13,21 @@ permissions:
13
id-token: write
14
15
jobs:
16
+ verify-version:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v6
20
+ - name: Check source version matches tag
21
+ run: |
22
+ TAG="${GITHUB_REF_NAME#v}"
23
+ SOURCE=$(jq -r .version package.json)
24
+ if [ "$TAG" != "$SOURCE" ]; then
25
+ echo "::error::Tag v$TAG does not match source version $SOURCE — bump package.json first"
26
+ exit 1
27
+ fi
28
+
29
test:
30
+ needs: verify-version
31
name: Test (Node ${{ matrix.node-version }})
32
runs-on: ubuntu-latest
33
strategy:
0 commit comments