Skip to content

fix: Publish to npm via trusted publishing - #19

Merged
hackwell merged 1 commit into
masterfrom
npm-trusted-publishing
Nov 17, 2026
Merged

hackwell merged 1 commit into
masterfrom
npm-trusted-publishing

Conversation

@hackwell

Copy link
Copy Markdown
Member

The npm publish step failed with 404 (NPM_TOKEN no longer valid), so 1.2.0–1.3.1 never reached npm (latest there: 1.1.0).

  • workflow permissions: contents/pull-requests: write for release-please, id-token: write for npm OIDC
  • Node 24 (npm ≥ 11.5.1 needed for trusted publishing), checkout/setup-node v4
  • no NODE_AUTH_TOKEN; the trusted publisher for flagbit/config-commitlint / release-please.yml is configured on npmjs.com

The NPM_TOKEN secret can be deleted afterwards.

npm revoked the classic token behind NPM_TOKEN, so releases since 1.1.0 never reached npm. Publish with GitHub OIDC (id-token: write) on Node 24, which ships an npm with trusted publishing support.
@hackwell
hackwell merged commit bcae9f8 into master Nov 17, 2026
1 check failed
@hackwell
hackwell deleted the npm-trusted-publishing branch November 17, 2026 14:25
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