Skip to content

ci: migrate npm publication to Trusted Publishing - #182

Merged
pitimon merged 1 commit into
mainfrom
release/trusted-publishing
Aug 8, 2026
Merged

ci: migrate npm publication to Trusted Publishing#182
pitimon merged 1 commit into
mainfrom
release/trusted-publishing

Conversation

@pitimon

@pitimon pitimon commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Closes #179

Summary

  • grant only the publish job a GitHub OIDC identity token
  • run the publish job on Node 24 (npm >= 11.5.1)
  • remove the long-lived NPM_TOKEN injection
  • add contract coverage for OIDC permission and token absence

Verification

  • node --test test/npm-publish-workflow.test.js test/release-automation.test.js
  • npm run ci:local

Release gating

The npm trusted-publisher relationship must be created for pitimon/TokenTracker / npm-publish.yml before this PR is merged. A real publish and provenance check remain required after that configuration.

@pitimon
pitimon force-pushed the release/trusted-publishing branch from 74e1410 to 1a75101 Compare August 8, 2026 09:12
@pitimon
pitimon merged commit 00374ad into main Aug 8, 2026
2 checks passed
@pitimon
pitimon deleted the release/trusted-publishing branch August 8, 2026 09:14
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.

release: migrate npm publication to Trusted Publishing OIDC

1 participant