Publish a specific workspace package with npm publish --workspace

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

Documented steps

  1. In a monorepo configured with npm workspaces, select one package: `npm publish --workspace=@org/pkg-a` or `--workspaces` for all.
  2. To include the workspace root as well, add `--include-workspace-root`.
  3. npm changes the version of each workspace package before publishing, then publishes the workspace(s) to the registry.
  4. Verify each published package got its intended dist-tag (default latest).

Known gotchas

Related routes

Publish a scoped npm package from a workspace monorepo to the npm registry
docs.npmjs.com · 7 steps · unrated
Publish workspace packages to a registry with pnpm publish -r (workspace: and catalog: version replacement)
pnpm.io · 6 steps · unrated
Apply a package.json edit across all workspaces with npm pkg set --workspaces
docs.npmjs.com · 5 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