Software Engineering
npm staged publishing adds batch approval for monorepos
npm now lets maintainers approve staged package releases in a batch with one 2FA confirmation. Check rollout, package selection and release recovery before relying on it.
What changed
GitHub announced on November 30 that maintainers can group staged npm package versions and approve the release batch with one two-factor authentication (2FA) confirmation. The approval is bound to the exact package and version set reviewed. Previously, each staged package version required a separate 2FA challenge, which could leave related packages published at different points in a release.
Who benefits
This is relevant to teams publishing several related packages together, especially monorepos where consumers need compatible package versions. npm’s documentation says a batch can contain up to 100 package versions, with only one version selected per package. Batch approval and rejection are rolling out gradually, so the control may not yet appear for every account.
Keep the review meaningful
One confirmation saves repeated prompts, but it also applies the same action to every selected version. Our recommendation: prepare the release manifest before approval and verify each package name, version, dist-tag, publisher and SHASUM. Inspect or download staged package contents when the change warrants it. Wait for automated validation to finish, then approve only the intended set. Avoid selecting versions simply because they were staged at the same time.
Plan for partial results
npm documents batch actions as independent: one package can fail while others succeed, and successful actions are not rolled back. Keep a record of the selected versions and inspect the result for each item. If a result is waiting, expired, or unconfirmed, check the staged-package list before retrying so you do not accidentally repeat an action whose status is unclear. Maintain a recovery plan for incompatible releases, including how to deprecate or publish a corrective version.
Adoption checklist
First confirm staged publishing is enabled for your account, your npm CLI is version 11.15.0 or later, and Node is 22.14.0 or later. Try the workflow on a low-risk package set. Compare the exact reviewed manifest with the release automation output, designate who can approve, and verify each package after the batch. npm documents this flow; G RATIO TECH has not run it.
Sources and disclosure
GitHub describes the new grouped approval; npm’s documentation gives prerequisites, selection limits and failure handling. Recommendations above are operational guidance.
Research and writing assisted by AI. Sources are linked for verification.