npm batch approval releases for staged packages
npm’s Staged Publishing Plans let package maintainers bundle multiple staged versions—up to one version per package—into a single grouped batch and release them together under one two-factor authentication (2FA) approval. Instead of approving each version separately, a multi-package monorepo release now requires just one approval, bound to the exact set of packages and versions shown at the time of approval.
Previously, staged publishing issued a 2FA challenge per release, so releasing many packages at once meant one challenge per package and version. This also created a window where some packages were published while their dependent siblings weren’t yet, which could break installs mid-release. Publishing Plans enables coordinating an entire batch as a single release.
This capability is also a step toward making staged publishing a viable mandatory fallback for monorepo publishers who use bypass-2FA granted access tokens.
To learn more, see Staged publishing for npm packages in the npm documentation.
Join the discussion within GitHub Community.