npm batch approval releases for staged packages
Previously, staged publishing issued a separate 2FA challenge for each release, so releasing many packages at once meant one challenge per package and version.
By Dillip Chowdary • Dec 04, 2026 • Source: GitHub Changelog

At a glance
- Feature
- npm batch approval for staged packages
- Release date
- November 30, 2026
- Prior behavior
- One 2FA challenge per package per release
- New behavior
- One 2FA challenge for the entire grouped batch
- Limit
- Up to one staged version per package per batch
In this post
The change means a multi-package monorepo release now requires a single 2FA approval bound to the exact set of packages and versions shown at the time of approval, rather than one challenge per package. This article covers what changed, how the batch approval works, and what it means for teams using staged publishing.
01One 2FA approval for an entire monorepo release
Previously, staged publishing issued a separate 2FA challenge for each release, so releasing many packages at once meant one challenge per package and version. Beyond the friction, this created a window where some packages were published while their dependent siblings were not yet available, which could break installs mid-release.
With Publishing Plans, an entire batch is treated as a single release. The approval is bound to the exact set of packages and versions shown at the time of approval, so the contents of the release are fixed before the 2FA step. If any package in the batch is not ready, the whole release waits.
02Step toward mandatory fallback for monorepo bypass-2FA tokens
The batch approval capability is also described as a step toward making staged publishing a viable mandatory fallback for monorepo publishers who use bypass-2FA granted access tokens. Access tokens that bypass 2FA at the individual-release level are common in automated publishing pipelines for large monorepos.
GitHub framed this as part of a longer effort to close the gap between the security model for single-package publishers and the practical needs of monorepo teams publishing many packages in a coordinated release.
03Coordinating batch releases before 2FA approval
The core design is that all packages in a batch must be in staged state before approval is requested. At approval time, the exact set of packages and versions is locked, so the reviewer sees precisely what will be published before committing their 2FA challenge. If the set changes after approval is generated, a new approval is required.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
This is a meaningful shift from how staged publishing worked before. The earlier model issued challenges on a rolling basis, so a maintainer could approve the first few packages and then discover that later packages in the same monorepo were not ready. The batch model eliminates that mid-release window entirely.
04Context: Staged Publishing Plans and bypass-2FA access tokens
Staged publishing was designed for projects that want to gate releases behind a human-in-the-loop approval step, even when automated tooling generates and stages the packages. It is especially relevant for teams that have granted publish access to CI systems through bypass-2FA tokens, where the 2FA step itself is deferred to a human reviewer.
The batch approval update makes this workflow viable at monorepo scale. Rather than a reviewer approving one package at a time — a process that can take many minutes for a large release — the reviewer now approves a single batch. The requirement that the batch approval be bound to the exact packages and versions shown at approval time prevents the automation from quietly changing what gets published after the reviewer signs off.
05Security implications for supply chain publishing
The batch model also addresses a subtle supply chain concern that existed with the per-package challenge flow. When a release requires multiple separate 2FA challenges, there is a window between the first and last approval where a subset of packages has been published but their peer packages have not yet been approved. During that window, a package that depends on another package in the same monorepo release could resolve to an older version of its sibling, creating a brief inconsistency.
By atomizing the approval into a single step across all packages in the batch, the batch approval model closes that window. The constraint that only one staged version per package can be included in a single batch limits the scope of each release, keeping the approval surface well-defined and auditable.
06Finding and documentation
Documentation for the feature is in the npm staged publishing guide. The GitHub Community discussion thread for staged publishing is open for feedback on the batch approval capability.
Note: The feature is available today as part of npm's Staged Publishing Plans. No separate opt-in is required beyond using staged publishing on the packages in question.
Frequently asked questions
What is npm batch approval for staged packages?
It is a feature in npm's Staged Publishing Plans that lets maintainers bundle multiple staged package versions into a single batch and release them with one two-factor authentication approval rather than one per package.
Why does batch approval matter for monorepos?
Releasing many packages separately created a window where some packages were live but their dependent siblings were not yet published, which could break installs. Batch approval releases all packages in a coordinated single step.
How do I use npm batch approval?
The feature is part of npm's Staged Publishing Plans. See the npm staged publishing documentation for setup and usage details.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement