Skip to content

chore: bump version (#19) #4

chore: bump version (#19)

chore: bump version (#19) #4

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false # never use caching in release builds
- run: npm ci
- name: Verify tag matches package version
run: |
TAG="${GITHUB_REF_NAME#v}"
PKG_VERSION=$(node -p "require('./package.json').version")
if [ "$TAG" != "$PKG_VERSION" ]; then
echo "Tag version ($TAG) does not match package.json version ($PKG_VERSION)"
exit 1
fi
- run: npm test
- run: npm publish