Conversation
petar-omni
commented
Nov 27, 2025
- Use NPM Trusted publishing
|
There was a problem hiding this comment.
Pull request overview
This PR migrates the NPM publishing authentication from token-based authentication to NPM Trusted Publishing (provenance-based publishing). The changes add the id-token: write permission required for OIDC-based authentication and remove the NPM_TOKEN secret dependency.
- Adds
id-token: writepermission to enable OIDC token generation - Removes
NPM_TOKENfrom environment variables to rely on trusted publishing
Comments suppressed due to low confidence (1)
.github/workflows/release.yml:38
- The
publishcommand must include the--provenanceflag to enable NPM Trusted Publishing. While theid-token: writepermission has been added, npm will not use trusted publishing without this flag. Update the release script in package.json tochangeset publish --provenanceor change this line topublish: pnpm run release --provenance.
publish: pnpm run release
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.