Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

chore(release): Release 1.2.1 #3

chore(release): Release 1.2.1

chore(release): Release 1.2.1 #3

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
cache: npm
- name: Show Node.js and npm versions
run: |
node --version
npm --version
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run typecheck
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Ensure tag version matches package.json
run: |
TAG_VERSION="${GITHUB_REF_NAME#v}"
PACKAGE_VERSION="$(node -p "require('./package.json').version")"
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
echo "Tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)"
exit 1
fi
- name: Publish package
run: npm publish --provenance --access public