The pnpm package manager has been updated to version 12.12.1. This release focuses on securing package publishing in CI/CD pipelines and standardizing how external runtimes are managed.
The pnpm publish command now checks the aud (audience) field inside NPM_ID_TOKEN. If a token was issued for a third-party registry, pnpm blocks it with a warning to prevent secret leaks. In addition, pnpm dist-tag now supports OpenID Connect (OIDC) in CI. When you enable "Allow npm dist-tag" in your trusted publishing settings, you no longer need long-lived npm secret tokens.
The update also introduces the tool: protocol for downloading Node.js, Bun, Deno, and Yarn. It replaces the runtime: prefix while keeping lockfile compatibility:
{
"devDependencies": {
"bun": "tool:1.3.0",
"node": "tool:22"
}
}
Assigning a tag in CI now runs over OIDC as well:
pnpm dist-tag add my-lib@1.0.0 next
Note that the name tool is now reserved, so you can no longer use it for custom registries in your configuration.

