Skip to content

chore: replace NPM_TOKEN with npm trusted publishing (OIDC)#50

Open
tim123abc wants to merge 2 commits intomainfrom
tim123abc/npm-trusted-publishing
Open

chore: replace NPM_TOKEN with npm trusted publishing (OIDC)#50
tim123abc wants to merge 2 commits intomainfrom
tim123abc/npm-trusted-publishing

Conversation

@tim123abc
Copy link
Copy Markdown
Contributor

Summary

  • Replaces `NPM_TOKEN` secret with npm's OIDC trusted publishing — no long-lived tokens needed
  • Adds `permissions: contents: read` and `id-token: write` required for OIDC token exchange
  • Adds `actions/setup-node@v4` with Node 24 (Node 22 has a known issue with npm OIDC)
  • Adds `provenance = true` to `.npmrc` so packages are published with npm provenance attestation
  • Removes `registry-url` from `setup-node` — pnpm has its own OIDC implementation and the option would write an empty `_authToken` that could conflict

Manual step required

On npmjs.com, configure a trusted publisher for each published package:

  • Repository: `vercel/microfrontends`
  • Workflow filename: `release.yml`

Test plan

  • Confirm trusted publisher is configured on npmjs.com for all published packages before merging
  • Verify release workflow succeeds on next merge to main

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nextjs-app-docs Ready Ready Preview, Comment Apr 21, 2026 3:54pm
nextjs-app-marketing Ready Ready Preview, Comment Apr 21, 2026 3:54pm
nextjs-pages-blog Ready Ready Preview, Comment Apr 21, 2026 3:54pm
nextjs-pages-dashboard Ready Ready Preview, Comment Apr 21, 2026 3:54pm
react-router-docs Ready Ready Preview, Comment Apr 21, 2026 3:54pm
react-router-vite-base-path Ready Ready Preview, Comment Apr 21, 2026 3:54pm
react-router-web Ready Ready Preview, Comment Apr 21, 2026 3:54pm
single-spa-root Ready Ready Preview, Comment Apr 21, 2026 3:54pm
single-spa-shared Ready Ready Preview, Comment Apr 21, 2026 3:54pm
single-spa-web Ready Ready Preview, Comment Apr 21, 2026 3:54pm
sveltekit-docs Ready Ready Preview, Comment Apr 21, 2026 3:54pm
sveltekit-web Ready Ready Preview, Comment Apr 21, 2026 3:54pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants