Skip to content

5.9.1

5.9.1 #1

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*'
permissions:
contents: write # needed to create the GitHub release
id-token: write # needed for npm trusted publishing (OIDC)
jobs:
publish:
runs-on: ubuntu-latest
# If you set an "Environment name" on the npm trusted publisher page,
# uncomment the line below and use the same name. This lets you add a
# required-reviewer gate in repo Settings > Environments if you want
# one last manual "approve" click before publish actually runs.
# environment: npm-publish
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run typecheck --if-present
- name: Run tests
run: npm test --if-present
- name: Build
run: npm run build --if-present
- name: Publish to npm
run: npm publish
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true