npm Staged Publishing Batches: Approve a Monorepo Release with One 2FA Check

npm can now approve or reject staged package versions in batches. Learn the limits, review flow, 2FA boundary, and failure handling for monorepo releases.

Several package release artifacts converging through one approval gate before moving together toward a registry

npm staged publishing now supports approving or rejecting multiple package versions as one batch. That is a useful change for monorepos: a release with several related packages needs one review and one two-factor authentication challenge instead of one challenge per package version.

The main benefit is coordination, not just fewer prompts. Publishing sibling packages one at a time can leave a short window where some versions are live and their dependencies are not. A batch lets a maintainer review the proposed set together before promotion.

What the batch feature does

From npmjs.com, select staged package versions, add them to a batch, and approve or reject the selection with one confirmation and one 2FA challenge. A batch can contain up to 100 package versions, but only one version of each package. If you want a different version, remove the first one before adding the replacement.

Batch actions are rolling out gradually, so the option may not be visible on every npm account yet. Automated validation must finish before an item can be approved. The approval control stays disabled while a selected version is still validating.

Stage first, approve later

Staged publishing separates the CI upload from the human decision. The workflow submits a package with npm stage publish. A maintainer then reviews the staged version and approves it before it becomes publicly available.

# Submit a version for review
npm stage publish

# Find staged versions
npm stage list

# Inspect one staged version
npm stage view <stage-id>

# Download the staged tarball
npm stage download <stage-id>

# Approve one version from the CLI
npm stage approve <stage-id>

Use the CLI for individual packages or for inspection. Use the Staged Packages tab on npmjs.com when you need to select a coordinated set and see the batch confirmation dialog.

Review the set, not just the green button

Before adding a version to the batch, check the package name, version, dist-tag, publisher, and SHASUM. Download the staged tarball when the package contains generated files, install scripts, native bindings, or a large dependency change. For a monorepo, compare the selected versions with the release plan and confirm that every package expected by the dependency graph is present.

A practical monorepo flow

Build and test the release in CI. Stage each package version. Wait for validation, then inspect the staged contents and select one version per package. Review the final list against the release commit and the package dependency graph. Approve only after the set is complete, and keep the progress dialog open until every result is known.

Batches are not all-or-nothing

npm processes each selected version independently. One failure does not roll back versions that succeeded. Treat the batch as a coordinated review and approval, not as a transaction. If an item fails, read its message, check whether the version was actually published, and retry that version individually only after confirming its state.

The progress dialog reports Waiting, Processing, Succeeded, or Failed for each version. A Waiting result can mean that npm has not started processing or could not confirm the result. Refresh the page and check the staged package list before starting another batch, so you do not approve the same version twice.

Trusted publishing still fits

Trusted publishing with OIDC can submit packages with npm stage publish, so CI does not need a long-lived npm token. Approval remains an interactive maintainer action with 2FA. For the strongest boundary, configure the trusted publisher for stage-only access and do not grant it direct npm publish permission.

If your release workflow still uses a granular npm token, the stage-only token guide covers that migration path.

A short checklist

Upgrade to npm CLI 11.15.0 or later and Node 22.14.0 or later. Stage every package in the release. Review package contents and the exact batch selection. Wait for validation. Approve once with 2FA. Monitor each result, then verify the published versions and dist-tags from a clean client.

Bottom line

Batch approval makes staged npm releases much more practical for monorepos. It reduces repeated 2FA prompts and gives maintainers one place to review the release set. Keep the important limit in mind: each package version can still succeed or fail independently, so verify every result before calling the release complete.