Skip to content

v0.1.9

v0.1.9 #10

Workflow file for this run

name: npm publish
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
environment: npm-publish
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
registry-url: "https://registry.npmjs.org"
# Trusted publishing requires npm 11.5.1+ (OIDC support)
- name: Ensure npm for trusted publishing
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Run tests
run: npm run test
- name: Build web app and CLI
run: npm run build
- name: Publish to npm
run: npm publish --provenance --access public