Skip to content

fix(ci): update npm to latest for trusted publishing OIDC support #4

fix(ci): update npm to latest for trusted publishing OIDC support

fix(ci): update npm to latest for trusted publishing OIDC support #4

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@latest
- run: npm ci
- run: npm run build
- run: npm test
- run: npm publish --provenance --access public