The batch has a limit that matters: it is one 2FA challenge, not one atomic transaction. The details are below.
What changed
Staged publishing separates uploading a package from releasing it. Instead of running npm publish, you submit packages to a staging area with npm stage publish. A maintainer then reviews the staged version and approves it with 2FA. Staging itself needs no 2FA, so CI pipelines keep running without interaction.
Before this update, every staged version needed its own approval and its own challenge. GitHub's changelog says that for a multi-package release, this meant one challenge per package and version. It also says it left a window where some packages were live while their dependent siblings were not, which could break installs partway through a release.
Batch approval collapses that to one confirmation. The batch can hold no more than one version of any given package.
The roadmap context
Maintainers had been asking for this. In GitHub's community discussion of the npm roadmap, publishing plans with batch approval are listed as a way to reduce approval friction when releasing multiple packages. One commenter there said approving one by one is infeasible for staged publishing of large monorepos. Before this release, a monorepo that published 12 packages meant 12 approvals, according to a third-party CI adoption guide from PrivateDevOps.
How to approve a batch
The documented flow is web-based:
- Sign in to npmjs.com and open the Staged Packages tab in your account settings.
- Review each staged version's package name, version, dist-tag, publisher and SHASUM. You can inspect or download the staged contents first.
- Select Add to batch on each version you want. The Filter by package and Load more controls help you find versions. Selected versions appear in the Batched section. The rest stay under Available.
- To drop a version, clear its In batch checkbox.
- Wait for validation. Approve stays disabled while a selected version is still validating. Refresh the page when validation finishes to enable it.
- Click Approve (N) or Reject (N). Check every package and version in the confirmation dialog, then confirm.
- Complete the single 2FA challenge and keep the page open while the batch runs.
Approving publishes the selected versions. Rejecting removes them without publishing.
If you want a different version of a package that is already in the batch, remove the selected version first.
The caveat: batches are not atomic
GitHub describes the feature as coordinating a whole batch as a single release. npm's own documentation is more cautious. Batch actions are independent. If one version fails, the others can still succeed, and successful actions are not rolled back.
The progress dialog gives each version a status of Waiting, Processing, Succeeded or Failed. You can try a failed version on its own to get more detail. If the dialog reports an expired authorization or an unconfirmed result, refresh and check the current state before starting a new batch.
For dependent packages, this means you should:
- Check the final results before announcing a release.
- Plan for a partial outcome, since a single package failing can still leave siblings live.
- Treat the one-challenge approval as a convenience and not as a guarantee of consistency.
This is my analysis of the documented behavior. The window of inconsistency should be much shorter than with manual one-by-one approval, but npm does not say it is eliminated.
Availability and limits
- npm says batch actions are rolling out gradually and may not be available on your account yet.
- The documented procedure is on npmjs.com. The documentation lists CLI commands that approve or reject a single stage by stage ID. It does not describe batch approval in the CLI.
- Staged publishing needs publish access, 2FA on your account, npm CLI 11.15.0 or later, and Node.js 22.14.0 or higher.
- Trusted publishing from CI can submit packages for staging, but a maintainer still approves with 2FA.
Workarounds for now
Some teams have not waited for the web feature. A pull request in the Comunica monorepo adds a script that asks for one OTP and runs npm stage approve for each version, four at a time by default. The pull request also describes web batch approval as an alternative once it reaches an account. pnpm's documentation says that since v12.0.0, several stage IDs can be approved at once, and the whole batch uses a single one-time password. The pnpm docs add that it asks for a new password once the registry stops accepting the current one.
These are third-party approaches. They show demand, but the npmjs.com flow is the only one npm itself documents for batches.
Why this matters for the January 2027 deadline
The timing matters because of token policy. npm's access-token documentation says direct publishing of new versions with granular tokens will be removed in January 2027. It recommends switching automation to a Read and write (stage only) token. That token can stage versions but cannot publish directly. Running a direct npm publish with it fails with the error E_STAGE_REQUIRED.
npm cautions that stage-only is not a complete security boundary. Such a token can still deprecate versions and move dist-tags, so it needs the same protection as any other token.
GitHub says batch approval is a step toward making staged publishing a viable mandatory fallback for monorepo publishers who use bypass-2FA tokens. Large monorepos could not realistically adopt a model that demanded dozens of separate 2FA prompts per release.
What to do now
- Audit automation that still publishes directly with bypass-2FA tokens.
- Move CI to npm stage publish and a stage-only or trusted-publishing setup.
- Write an approval runbook that says who approves, and what happens if only part of a batch succeeds.
- Confirm whether batch actions have reached your account before you rely on them for a release.
Batch approval is a practical fix for a real pain point, and the remaining caveats are manageable. The main one is that a single approval still does not make a release all-or-nothing.
References
- npm batch approval releases for staged packages GitHub Changelog · 2026-11-30T17:36:51+00:00
- Use npm staged publishing for releases by rubensworks · Pull Request #2042 · comunica/comunica · GitHub github.com
- npm’s roadmap: safer publishing, smoother workflows, and what’s next · community · Discussion #208130 · GitHub github.com