Skip to content

release.yml: npm trusted publishing (OIDC) instead of NPM_TOKEN - #35

Merged
DennisSmolek merged 1 commit into
mainfrom
release-trusted-publishing
Nov 25, 2026
Merged

DennisSmolek merged 1 commit into
mainfrom
release-trusted-publishing

Conversation

@DennisSmolek

Copy link
Copy Markdown
Member

Switches the manual release workflow from an NPM_TOKEN secret to npm trusted publishing.

  • Remove NODE_AUTH_TOKEN / secrets.NPM_TOKEN from the publish step; the npm CLI exchanges the job's OIDC token (id-token: write was already set).
  • Node 20 → 24, plus an npm install -g npm@^11.5.1 step: trusted publishing needs npm ≥ 11.5.1 (node 20 ships npm 10).
  • The header comment documents the one-time npm-side setup.

Before running the workflow, a denoiser package owner must add the trusted publisher on npmjs.com: package → Settings → Trusted Publisher → GitHub Actions, with Organization pmndrs, Repository denoiser, Workflow filename release.yml, and Environment left blank.

Once that's done, run "Release (npm publish)" from the Actions tab on main. This publishes denoiser@2.0.0 as latest; npm is currently at 0.0.11.

🤖 Generated with Claude Code

…_TOKEN

Drops the NPM_TOKEN secret; the npm CLI exchanges the workflow's OIDC
token instead. Trusted publishing needs npm >= 11.5.1, so node 20 -> 24
plus an explicit npm upgrade step. Header comment now documents the
one-time Trusted Publisher setup on npmjs.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DennisSmolek
DennisSmolek merged commit ec14b60 into main Nov 25, 2026
2 checks passed
@DennisSmolek
DennisSmolek deleted the release-trusted-publishing branch November 25, 2026 03:28
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