Skip to content

Publish

Publish #3

Workflow file for this run

name: Publish
on:
release:
types:
- published
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
environment: npm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
cache: npm
- name: Install dependencies
run: npm ci
- name: Run preflight
run: npm run preflight:publish
- name: Publish with provenance
run: npm publish --access public --provenance