Skip to content

Conversation

@phryneas
Copy link
Contributor

@phryneas phryneas commented Jan 26, 2026

This PR makes changes to enable OIDC publishing to npm, so that we no longer need to use npm tokens stored in GitHub secrets.

It makes the following changes:

  • Update the repository field in package.json files to the format that npm expects here - via npm pkg fix
  • Add permissions required for OIDC publishing to the GitHub Actions workflow
  • Ensures that the node version for publishing is node 24. npm versions shipping with older node versions cannot publish via OIDC. Some node 22 versions can, but it's a gamble and hard to debug if something goes wrong.
  • Remove references to NPM_TOKEN secrets in the GitHub Actions workflow - or if using changesets, sets it to "" as changesets requires the env var to be set, but actually doesn't do anything - and it should be empty for OIDC publishing to work.

I have already gone ahead and set OIDC publishing on the npm side, so this is just the second half of the puzzle.

@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2026

⚠️ No Changeset found

Latest commit: b7afb53

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@phryneas phryneas requested a review from BlenderDude January 26, 2026 17:11
@phryneas phryneas merged commit 35bd57e into main Jan 27, 2026
6 checks passed
@phryneas phryneas deleted the pr/setup-oidc branch January 27, 2026 12:15
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