Skip to content

Harden npm trusted publishing workflow#606

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#606
kentcdodds merged 4 commits into
epicweb-dev:mainfrom
kody-bot:cursor/harden-npm-release-d34b

Conversation

@kody-bot
Copy link
Copy Markdown
Collaborator

@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
@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented May 12, 2026

View your CI Pipeline Execution ↗ for commit fc6a90a

Command Status Duration Result
nx run-many --target typecheck ✅ Succeeded 2s View ↗
nx run-many --target build ✅ Succeeded 1s View ↗
nx lint ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-13 00:07:58 UTC

@kentcdodds kentcdodds merged commit 2976381 into epicweb-dev:main May 13, 2026
9 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