npm’s Staged Publishing Plans let package maintainers bundle multiple staged versions—up to one version per package—into a single grouped batch and release them together under one two-factor authentication (2FA) approval. Instead of approving each version separately, a multi-package monorepo release now requires just one approval, bound to the exact set of packages and versions shown at the time of approval. Previously, staged publishing issued a 2FA challenge per release, so releasing many packages at once meant one challenge per package and version. This also created a window where some packages were published while their dependent siblings weren’t yet, which could break installs mid-release. Publishing Plans enables coordinating an entire batch as a single release. This capability is also a step toward making staged publishing a viable mandatory fallback for monorepo publishers who use bypass-2FA granted access tokens. To learn more, see Staged publishing for npm packages in the npm…
Original text(via GitHub Changelog)
npm’s Staged Publishing Plans let package maintainers bundle multiple staged versions—up to one version per package—into a single grouped batch and release them together under one two-factor authentication (2FA) approval. Instead of approving each version separately, a multi-package monorepo release now requires just one approval, bound to the exact set of packages and versions shown at the time of approval.
Previously, staged publishing issued a 2FA challenge per release, so releasing many packages at once meant one challenge per package and version. This also created a window where some packages were published while their dependent siblings weren’t yet, which could break installs mid-release. Publishing Plans enables coordinating an entire batch as a single release.
This capability is also a step toward making staged publishing a viable mandatory fallback for monorepo publishers who use bypass-2FA granted access tokens.
To learn more, see Staged publishing for npm packages in the npm documentation.
Join the discussion within GitHub Community.
social
The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.
Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.