Skip to content

ci: re-enable npm publish --provenance (repo is public) #3

ci: re-enable npm publish --provenance (repo is public)

ci: re-enable npm publish --provenance (repo is public) #3

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run build
publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- run: node -v
- run: npm -v
- run: npm ci
- run: npm run build
# OIDC + provenance (repo must be public on GitHub for provenance to be accepted by npm)
- name: Publish to npm via OIDC
run: npm publish --provenance