Skip to content

ci: ensure npm trusted publishing compatibility #6

ci: ensure npm trusted publishing compatibility

ci: ensure npm trusted publishing compatibility #6

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
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 --version
- run: yarn install --immutable
- run: yarn prepare
- run: npm publish --provenance --access public