Skip to content

v0.1.1

v0.1.1 #2

Workflow file for this run

name: Publish Package
on:
release:
types: [published]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
cache: npm
- name: Verify version matches release tag
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
TAG_VERSION="${GITHUB_REF_NAME#v}"
if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
echo "::error::package.json version ($PACKAGE_VERSION) does not match release tag ($TAG_VERSION)"
exit 1
fi
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run build
- run: npm test
- run: npm publish