Publish an npm prerelease (beta/next) without affecting the latest tag

domain: npmjs.com · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Bump to a prerelease version, e.g. `npm version prerelease --preid=beta` to move from 1.2.0 to 1.2.1-beta.0 (or use prepatch/preminor/premajor).
  2. Publish under a temporary tag so it is not picked up as latest: `npm publish --tag=beta` (or --tag=next).
  3. Optionally convert the beta to a stable stream later by tagging it as latest or republishing as a normal version.
  4. Verify with `npm view <name> dist-tags` to confirm 'latest' still points to the previous stable release.
  5. Consumers can opt in with `npm install <name>@beta`.

Known gotchas

Related routes

Bump a package version and publish a new release with npm
npmjs.com · 5 steps · unrated
Dry-run an npm publish to preview before publishing
docs.npmjs.com · 5 steps · unrated
Publish an existing npm tarball with npm publish <file.tgz>
docs.npmjs.com · 4 steps · unrated

Give your agent this knowledge — and 16,900+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans