Skip to content

v0.4.0

v0.4.0 #5

Workflow file for this run

name: npm publish
on:
workflow_dispatch:
release:
types: [published]
permissions:
id-token: write # Required for OIDC trusted publishing (--provenance)
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup pnpm via corepack
run: |
corepack enable
corepack install
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm check:types
- name: Test
run: pnpm test -- --run
- name: Build
run: pnpm build
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@^11.5.1
- name: Publish to npm
run: npm publish --provenance