Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # required for npm provenance
id-token: write # required for OIDC trusted publishing + provenance
steps:
- uses: actions/checkout@v4
- run: corepack enable
Expand All @@ -21,6 +21,9 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm test
# Trusted Publishing (OIDC) — no NPM_TOKEN. npm >= 11.5.1 exchanges the
# GitHub Actions id-token for a short-lived credential and attaches
# provenance automatically. Requires a Trusted Publisher configured for
# this package on npmjs.com (repo + workflow file).
- run: npm install -g npm@latest
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading