Skip to content

Enable NPM trusted publishing with OIDC#352

Merged
hillna merged 3 commits intomainfrom
nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing
Jan 26, 2026
Merged

Enable NPM trusted publishing with OIDC#352
hillna merged 3 commits intomainfrom
nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing

Conversation

@hillna
Copy link
Contributor

@hillna hillna commented Jan 13, 2026

Summary

Update npm publish workflow to use OIDC trusted publishing with provenance.

Changes

  • Add id-token: write and contents: read permissions for OIDC authentication
  • Use yarn npm publish with --provenance flag for supply chain security
  • Remove yarn pack step (no longer needed with direct yarn publishing)
  • Update actions to v6
  • Remove NODE_AUTH_TOKEN secret (no longer needed with OIDC)

Status

✅ Trusted publishing has been configured on npmjs.com for this package.

- Add OIDC permissions (id-token: write, contents: read) for trusted publishing
- Replace NODE_AUTH_TOKEN with npx npm@latest publish --provenance
@linear
Copy link

linear bot commented Jan 13, 2026

@hillna hillna self-assigned this Jan 14, 2026
@hillna hillna marked this pull request as ready for review January 14, 2026 18:46
- Add id-token: write and contents: read permissions for OIDC
- Update to npx npm@11.7.0 publish with --provenance flag
- Update actions to v6
@hillna hillna force-pushed the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch from 11ede04 to 0dafa66 Compare January 14, 2026 21:57
@jtbandes
Copy link
Member

jtbandes commented Jan 22, 2026

Can we use yarn npm publish for these (and remove the separate pack step)?

@hillna hillna requested a review from jtbandes January 26, 2026 16:27
Switch from yarn pack + npx npm publish to yarn npm publish for OIDC trusted publishing support.
@hillna hillna merged commit 020bfff into main Jan 26, 2026
1 check passed
@hillna hillna deleted the nick/inf-65-update-npm-publish-workflows-to-use-trusted-publishing branch January 26, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants