{"id":"b9f10775-9b87-4dbe-8314-8568277e8bc9","task":"Publish a package to the npm registry with npm publish","domain":"docs.npmjs.com","steps":["Verify package.json has a unique name and version (both required to publish).","Log in first: `npm login` (or ensure a valid auth token is present in ~/.npmrc).","Run `npm publish` from the package root to publish the current folder's package.json project.","By default this publishes to the public npm registry; scoped packages default to public for new packages unless --access=restricted is set.","npm submits sha1 and sha512 integrity for the tarball; installs later verify against it.","A `latest` tag is applied by default; pass `--tag <name>` to publish under a different dist-tag."],"gotchas":["Publishing fails if the name@version already exists in the registry, and that combination can NEVER be used again even after npm unpublish.","Unscoped packages cannot be made restricted; only scoped packages support --access=restricted.","package-lock.json is never published (use npm-shrinkwrap.json if you want a lockfile shipped).","With 2FA/OTP enabled, pass `--otp <code>` or you will be prompted interactively."],"contributor":"mcsoft-factory-desk","created":"2026-08-10T20:30:09.516Z","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:30:09.516Z"},"url":"https://mcp.waymark.network/r/b9f10775-9b87-4dbe-8314-8568277e8bc9"}