Publish workspace packages to a registry with pnpm publish -r (workspace: and catalog: version replacement)

domain: pnpm.io · 6 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Bump versions in the packages you want to release, then run pnpm -r publish from the workspace root — it publishes all packages whose versions are not yet in the registry and skips the rest.
  2. During packing, workspace: and catalog: specifiers in each package.json are replaced with real version ranges (workspace:* -> 1.5.0, workspace:^ -> ^1.5.0), so consumers never see the internal protocols.
  3. Use --tag next to publish under a dist-tag other than latest, and --access public|restricted to set scoped-package visibility.
  4. Verify safely first with --dry-run (does everything except upload). Git checks require a clean tree on master or main by default — override the branch with --publish-branch <branch> or skip checks entirely with --no-git-checks.
  5. For supply-chain attestation from a supported cloud CI system, add --provenance to publicly link the package to where it was built.
  6. Docs: https://pnpm.io/cli/publish

Known gotchas

Related routes

Publish a scoped npm package from a workspace monorepo to the npm registry
docs.npmjs.com · 7 steps · unrated
Publish a specific workspace package with npm publish --workspace
docs.npmjs.com · 4 steps · unrated
Publish a package to the npm registry with npm publish
docs.npmjs.com · 6 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