Skip to content

ci(release): publish to npm through trusted publishing - #25

Merged
LilMGenius merged 1 commit into
mainfrom
ci/trusted-publishing
Nov 2, 2026
Merged

LilMGenius merged 1 commit into
mainfrom
ci/trusted-publishing

Conversation

@LilMGenius

Copy link
Copy Markdown
Owner

Impact

Releases stop depending on a long-lived npm token. npm restricts granular tokens that bypass 2FA (no account changes now, no direct publishing from January 2027), and the NPM_TOKEN secret is one of those.

Change

The publish step no longer passes NODE_AUTH_TOKEN, and --provenance is dropped because trusted publishing attaches provenance itself. id-token: write was already granted.

Verification

  • npm run check locally.
  • The trust itself is set on npmjs.com (package paperthin, workflow release.yml, repository LilMGenius/paperthin); the CLI refuses npm trust from a bypass-2FA token.

Limits

The first real proof is the next v*.*.* tag. Until the trust is set on npmjs.com, that release would fail at the publish step.

- Drop the NPM_TOKEN secret from the publish step so npm trades the job's OIDC token for a one-time credential, which attaches provenance by itself; npm stops bypass-2FA tokens from publishing in January 2027
@LilMGenius
LilMGenius merged commit 0b1e2c6 into main Nov 2, 2026
1 check passed
@LilMGenius
LilMGenius deleted the ci/trusted-publishing branch November 2, 2026 02:38
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