Skip to content

ci: publish npm packages with trusted publishing - #18

Merged
TheStreamCode merged 3 commits into
mainfrom
ci/npm-trusted-publishing
Nov 4, 2026
Merged

TheStreamCode merged 3 commits into
mainfrom
ci/npm-trusted-publishing

Conversation

@TheStreamCode

Copy link
Copy Markdown
Owner

Summary

Migrates the Chutes Build npm publication job from a long-lived NPM_TOKEN to GitHub OIDC trusted publishing.

  • Bumps the publish job from Node 22 to Node 24 so npm 11 is available.
  • Removes both NODE_AUTH_TOKEN environment blocks.
  • Keeps id-token: write and the npm-release environment as the OIDC boundary.
  • Updates the release documentation to describe trusted publishers instead of the retired token.

npm configuration

Trusted publishers are configured on npmjs.com for all seven packages published by this workflow:

chutes-build, chutes-build-darwin-arm64, chutes-build-darwin-x64, chutes-build-linux-arm64-gnu, chutes-build-linux-x64-gnu, chutes-build-win32-arm64, chutes-build-win32-x64

Each is bound to TheStreamCode/chutes-build, workflow package-release.yml, environment npm-release, with publish permission.

Verification

  • npm run check: 16 tests pass, release manifests aligned, npm pack --dry-run passes.
  • git diff --check
  • npm trust list confirms all seven package configurations.
  • No publish was attempted from this PR.

TheStreamCode and others added 2 commits November 1, 2026 15:23
Replace the long-lived NPM_TOKEN in the package release job with GitHub OIDC. Node 24 supplies npm 11, and npmjs.com now has trusted publishers for the launcher and all six native packages bound to this repository, package-release.yml, and the npm-release environment.
@TheStreamCode
TheStreamCode enabled auto-merge (squash) November 4, 2026 04:18
@TheStreamCode
TheStreamCode merged commit d7061ea into main Nov 4, 2026
11 checks passed
@TheStreamCode
TheStreamCode deleted the ci/npm-trusted-publishing branch November 4, 2026 06: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.

1 participant