Skip to content

Switch to OIDC trusted publisher for npm publishing #19

Switch to OIDC trusted publisher for npm publishing

Switch to OIDC trusted publisher for npm publishing #19

Workflow file for this run

name: Publish
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
run: npm publish --provenance --access public