npm lets maintainers publish packages in batches with one two-factor check
A group can hold up to 100 staged versions; if one fails, others can still go live.
Two related packages
Imagine a team has staged a library called core at version 2.0.0 and a tool at version 2.0.0 that needs exactly that library version. On npm’s website, a maintainer can select both versions and approve their release with one two-factor authentication check. This is a hypothetical example: we did not publish these packages.
If the library fails to go live while the tool is published, installing the tool may fail because the required library version is not in the registry. One approval does not guarantee that the whole group will be published successfully.
GitHub announced the feature on November 30, 2026. It is rolling out gradually on npm, a registry of software packages for developers, so it may not yet be available to every account. A batch holds up to 100 versions, with no more than one version of each package.
What to check before publishing
On npmjs.com, the maintainer opens Staged Packages in account settings and adds prepared versions to a batch. These versions wait for approval before entering the registry.
npm recommends checking package names and versions, publishers, distribution tags and checksums. The contents can be inspected or downloaded if needed. Before approving a batch, wait for automated validation to finish for every selected version.
One action applies to the whole batch: Approve publishes the versions, while Reject removes the staged versions without publishing them. The confirmation dialog shows the names and versions to which the decision applies. Both actions require an additional identity check, for example with a configured hardware key or biometric method.
How to check the result
npm processes versions independently. If the action fails for one package, successful actions for the others are not rolled back. The documentation recommends keeping the page open and checking the result for each version in the progress dialog.
If a result is unconfirmed, refresh the page and check the current state before starting another batch. A version that failed can be tried individually to get more details.
What staging requires
For staged publishing, npm specifies npm CLI 11.15.0 or later, Node.js 22.14.0 or later, permission to publish the package and two-factor authentication enabled on the account. Submitting a version to staging does not itself trigger an additional identity check; approval does.
For a new package, npm publishes a publicly available placeholder version, 0.0.0-stage, when it is first staged. The staged version and its contents remain unavailable to the public until approval, according to the documentation.
Primary sources
Archive photograph from 2011: a hardware key is one possible method for two-factor authentication. Photo: Warfieldian / Wikimedia Commons, CC BY-SA 3.0; converted to WebP. Warfieldian · YubiKey, 2011 / Wikimedia Commons · CC BY-SA 3.0 · Web adaptation, WebP.



