Skip to content

ci: drop NODE_AUTH_TOKEN in favor of npm trusted publishing#300

Merged
Cafe137 merged 1 commit into
masterfrom
ci/drop-npm-token-trusted-publishing
May 20, 2026
Merged

ci: drop NODE_AUTH_TOKEN in favor of npm trusted publishing#300
Cafe137 merged 1 commit into
masterfrom
ci/drop-npm-token-trusted-publishing

Conversation

@darkobas2
Copy link
Copy Markdown
Contributor

Summary

  • Removes NODE_AUTH_TOKEN/NPM_TOKEN env from the npm publish step in publish_npmjs.yaml.
  • The workflow already requests id-token: write under the publish environment, and @ethersphere/bee-factory is registered as a trusted publisher on npmjs.com for this repo / workflow / environment.
  • With the token gone, npm publish --provenance will authenticate via OIDC.

Test plan

  • Merge this PR
  • Merge release-please PR chore(master): release bee-factory 1.0.0 #295 to cut a release and trigger publish_npmjs.yaml
  • Confirm the publish step completes without NPM_TOKEN and the package appears on npm with a provenance attestation

The publish_npmjs workflow already runs with id-token: write under the
publish environment, and the package is registered as a trusted
publisher on npmjs.com. Removing NODE_AUTH_TOKEN lets npm publish
authenticate via OIDC instead of the long-lived NPM_TOKEN secret.
@Cafe137 Cafe137 merged commit a7f8a33 into master May 20, 2026
1 check passed
@Cafe137 Cafe137 deleted the ci/drop-npm-token-trusted-publishing branch May 20, 2026 13:21
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