· 2 min read · Engineering & delivery · 閱讀中文版
npm batch releases: review the version list before approval
A practical release checklist inspired by npm’s November 30 update: package scope, review evidence, and clean-install verification.
On this page
On November 30, 2026, GitHub announced npm Staged Publishing Plans: staged package versions can form a batch with one 2FA approval, with at most one version per package. The following is a proposed delivery workflow, not a hands-on evaluation of the feature.
Define what this release contains
A monorepo commit may change shared components, utilities, and their consumers. Before review, list package names, versions, dependency ranges, and the source commit. Also identify packages that will stay unchanged. A passing repository build does not mean every package needs a release.
Connect that list to actual artifacts. Inspect package contents, entry points, and type declarations alongside source changes. A path resolved through a local workspace may be absent from the downloaded package. These are checks the team should design, not checks this article claims npm performs automatically.
Resolve changes before approval
Keep a review record with artifact hashes and test results. If a version changes or an artifact is rebuilt, compare it again instead of carrying over a judgment about different content. Approval should express a decision about something specific, rather than become a routine click.
For example, a component may advance while a dependent utility retains an older range. Decide whether that matches the compatibility promise. Widening every range just to fit a release batch transfers an unresolved decision to people installing the packages.
Test the consumer’s installation
After publication, use a clean directory to install explicit versions and run a minimal consumer example. Check imports, types, and runtime behavior, then cover the installation methods you support. This helps expose problems hidden by workspace links or existing caches; it does not replace broader compatibility testing.
If results differ from expectations, pause further promotion and record affected versions and reproduction steps. Decide on a corrective release and communication from that evidence. Repeating a publishing action is not a diagnosis, and recovery should not be announced before it is checked.
Start with one review sheet
For the next multi-package release, prepare a sheet covering versions, artifacts, evidence, and owners. Ask another maintainer to review using it. My delivery recommendation is simple: when fewer confirmation steps are needed, make the meaning of each remaining confirmation easier to inspect.