Skip to content

Remove registry-url from setup-node, rely on npm OIDC trusted publishing for auth#95

Merged
pcholakov merged 1 commit into
mainfrom
oidc-publish
May 6, 2026
Merged

Remove registry-url from setup-node, rely on npm OIDC trusted publishing for auth#95
pcholakov merged 1 commit into
mainfrom
oidc-publish

Conversation

@pcholakov
Copy link
Copy Markdown
Collaborator

Summary

  • Drops registry-url from actions/setup-node in the publish workflow
  • When registry-url is set, setup-node creates a temp .npmrc with _authToken=${NODE_AUTH_TOKEN}; if that var is set (e.g. to GITHUB_TOKEN by the runner), npm uses the token instead of doing an OIDC exchange
  • Without registry-url, no .npmrc with an auth token ref is created; npm falls through to OIDC trusted publishing automatically
  • Registry URL is already declared in package.json via publishConfig["@restatedev:registry"] so nothing is lost
  • NPM_TOKEN repository secret is no longer needed

Test plan

  • Merge and observe the next snapshot publish succeeds without NPM_TOKEN

@pcholakov pcholakov merged commit 0845c84 into main May 6, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant