Skip to content

docs: clarify staged publishing can create new packages - #2047

Open
shmam wants to merge 5 commits into
mainfrom
clarify-staged-publishing-create-package
Open

shmam wants to merge 5 commits into
mainfrom
clarify-staged-publishing-create-package

Conversation

@shmam

@shmam shmam commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Clarifies that staged publishing can soon be used to create brand-new packages, not just stage new versions of packages that already exist on the registry.

Changes

  • content/packages-and-modules/securing-your-code/staged-publishing.mdx — updated the Prerequisites bullet to reflect that a package can be brand-new or already published.

Companion PR

The npm stage CLI reference pages (content/cli/v11 and v12) carry the same "Package must exist" prerequisite, but those files are auto-generated from the npm/cli repo (docs/lib/content/commands/npm-stage.md) via the update-cli workflow. The matching fix is in npm/cli#10017 so the correction isn't overwritten on the next sync.

Update the staged publishing prerequisites to note that a package does
not need to already exist on the npm registry. Staging a brand-new
package creates it when the staged version is approved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Clarify that staged publishing can create new packages and works for existing ones. Add requirements for npm CLI and Node versions.
shmam added a commit to npm/cli that referenced this pull request Sep 24, 2026
#10017)

## Summary

The `npm stage` **Prerequisites** section states that the package must
already exist on the npm registry. Staged publishing will soon support
**creating brand-new packages** via staged publishing.

This updates the prerequisite docs accordingly.

## Changes

- `docs/lib/content/commands/npm-stage.md` — replaced the "Package must
exist" prerequisite with "New or existing packages," clarifying that a
package does not need to pre-exist and that approving a staged brand-new
package creates it.

## Related

Companion docs change in npm/documentation:
npm/documentation#2047 (the generated
`content/cli/*/commands/npm-stage.mdx` pages are synced from this file
via the `update-cli` workflow).

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
github-pages — 937f0047 Deployed Sep 25, 2026 by karenjli via deploy #3143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants