Skip to content

Publish the SDK through npm trusted publishing when no token is set - #92

Merged
its-janghoon merged 1 commit into
developfrom
feature/publish-sdk-trusted
Oct 13, 2026
Merged

its-janghoon merged 1 commit into
developfrom
feature/publish-sdk-trusted

Conversation

@its-janghoon

Copy link
Copy Markdown
Member

The 0.6.0 publish failed at "NPM_TOKEN is not set": the token the 0.4.1 publish used is gone, and the
package is meant to publish through npm's trusted publishing instead. That needs id-token: write
on the job and npm >= 11.5.1, which the runner's default Node does not carry; with both, npm publish
exchanges the GitHub OIDC token for a short-lived credential and attaches provenance on its own.

NPM_TOKEN still wins when it is set, so nothing changes for a repository that keeps one. The trust
itself lives on npmjs.com (package > Settings > Trusted publisher: redrob-labs/redrob-code,
publish-sdk.yml) and is not something this file can grant.

The 0.6.0 publish failed at "NPM_TOKEN is not set": the token the 0.4.1 publish used is gone, and the
package is meant to publish through npm's trusted publishing instead. That needs `id-token: write`
on the job and npm >= 11.5.1, which the runner's default Node does not carry; with both, `npm publish`
exchanges the GitHub OIDC token for a short-lived credential and attaches provenance on its own.

NPM_TOKEN still wins when it is set, so nothing changes for a repository that keeps one. The trust
itself lives on npmjs.com (package > Settings > Trusted publisher: redrob-labs/redrob-code,
publish-sdk.yml) and is not something this file can grant.
@its-janghoon
its-janghoon merged commit fdc5030 into develop Oct 13, 2026
16 checks passed
@its-janghoon
its-janghoon deleted the feature/publish-sdk-trusted branch October 13, 2026 05:29
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