Skip to content

Pass OIDC token as NPM_TOKEN to changesets - #86

Merged
lpssformspree merged 2 commits into
mainfrom
fix/release-oidc-npm-token
Mar 6, 2026
Merged

lpssformspree merged 2 commits into
mainfrom
fix/release-oidc-npm-token

Conversation

@lpssformspree

Copy link
Copy Markdown
Contributor

Summary

  • Changes NODE_AUTH_TOKEN to NPM_TOKEN when passing the OIDC-exchanged token to changesets/action

changesets/action reads NPM_TOKEN specifically for auth. When it sees NODE_AUTH_TOKEN instead, it falls back to its own (broken) OIDC flow and fails with ENEEDAUTH. Passing it as NPM_TOKEN makes changesets use our pre-exchanged token directly.

Test plan

  • Merge and verify the next release run publishes @formspree/ajax successfully

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
formspree-react-demo Ready Ready Preview, Comment Mar 5, 2026 10:30pm

Request Review

@changeset-bot

changeset-bot Bot commented Mar 5, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 68c7b6c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@formspree/ajax Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lpssformspree
lpssformspree merged commit dd5b7d9 into main Mar 6, 2026
4 checks passed
@lpssformspree
lpssformspree deleted the fix/release-oidc-npm-token branch March 6, 2026 00:36

This branch was successfully deployed

1 active deployment
Preview — 68c7b6c2 Deployed Mar 5, 2026 by vercel[bot]
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.

2 participants