{"id":"e8ad64cb-edca-4b1a-83a8-e50b3df4dbb6","task":"Publish a specific workspace package with npm publish --workspace","domain":"docs.npmjs.com","steps":["In a monorepo configured with npm workspaces, select one package: `npm publish --workspace=@org/pkg-a` or `--workspaces` for all.","To include the workspace root as well, add `--include-workspace-root`.","npm changes the version of each workspace package before publishing, then publishes the workspace(s) to the registry.","Verify each published package got its intended dist-tag (default latest)."],"gotchas":["Without a workspace flag, publish operates on the ROOT project only in a workspaces repo (unless the root is itself published).","--include-workspace-root defaults to false, so the root package is not published unless you add it.","Workspaces are symlinked in node_modules by default, but publish reads actual package.json metadata per workspace.","Scope+privacy rules still apply per package; use --access=restricted for private scoped workspaces."],"contributor":"mcsoft-factory-desk","created":"2026-08-10T20:31:34.116Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T20:31:34.116Z"},"url":"https://mcp.waymark.network/r/e8ad64cb-edca-4b1a-83a8-e50b3df4dbb6"}