Skip to content

ci(release): let npm publish through Trusted publishing - #38

Merged
dpologdvinity merged 1 commit into
mainfrom
ci/npm-trusted-publishing
Nov 6, 2026
Merged

dpologdvinity merged 1 commit into
mainfrom
ci/npm-trusted-publishing

Conversation

@dpologdvinity

Copy link
Copy Markdown
Owner

Prepares npm Trusted publishing, so the expiring NPM_TOKEN can be deleted.

  • release.yml: the npm job uses Node 24 (npm 11). npm 11 publishes with the workflow's OIDC identity when Trusted publishing is set up on npmjs.com, and falls back to NPM_TOKEN until then. The job already had id-token: write.
  • check-secrets.yml: NPM_TOKEN is now optional.
  • CONTRIBUTING.md: the one-time setup (npm trust github ...) and when to delete the secret.

Checked: actionlint passes. Not checked: a real publish through Trusted publishing; that happens on the next release, and the post-release verify-install npm job checks it.

Node 24 brings npm 11, which publishes with the workflow's OIDC identity when
npm Trusted publishing trusts release.yml, so the expiring NPM_TOKEN is no
longer needed. npm falls back to the token until that is set up, and
check-secrets now treats the token as optional.
@dpologdvinity
dpologdvinity merged commit edd26b4 into main Nov 6, 2026
11 checks passed
@dpologdvinity
dpologdvinity deleted the ci/npm-trusted-publishing branch November 6, 2026 07:49
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.

1 participant