Skip to content

Harden npm trusted publishing workflow#38

Merged
kentcdodds merged 4 commits into
epicweb-dev:mainfrom
kody-bot:cursor/harden-npm-release-d34b
May 13, 2026
Merged

Harden npm trusted publishing workflow#38
kentcdodds merged 4 commits into
epicweb-dev:mainfrom
kody-bot:cursor/harden-npm-release-d34b

Conversation

@kody-bot
Copy link
Copy Markdown
Contributor

@kody-bot kody-bot commented May 12, 2026

Summary

  • keep npm OIDC/id-token permission out of install/build/test jobs where possible
  • run package build/test work before entering the publish-authorized job
  • disable package-manager caching in publish jobs
  • install publish-time tooling with lifecycle scripts disabled when the custom release command requires local tooling
  • pin release-path actions to commit SHAs

Context

Triggered by the TanStack npm supply-chain compromise postmortem: https://tanstack.com/blog/npm-supply-chain-compromise-postmortem

Testing

  • workflow syntax checked by construction against the existing workflow shape

@kody-bot kody-bot marked this pull request as ready for review May 12, 2026 18:41
@kentcdodds kentcdodds merged commit d28e7d4 into epicweb-dev:main May 13, 2026
5 checks passed
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.

2 participants