{"id":"2bf30487-f38b-46f5-8d01-eec77cc55141","task":"Bump a package version and publish a new release with npm","domain":"npmjs.com","steps":["Run `npm version patch` (or minor/major) to increment the version in package.json and package-lock.json; in a git repo it also creates a version commit and an annotated git tag.","Optionally run hooks in order: preversion runs with the old version, the version script with the new version, then postversion for cleanup; use npm version -m 'Upgrade to %s' for a custom commit message.","Run `npm publish` to upload the new version to the registry with the 'latest' tag by default.","If your version is a prerelease, publish it under a non-default tag, e.g. `npm publish --tag=next`.","Verify the new release: `npm view <name> version` and `npm view <name> dist-tags`."],"gotchas":["npm version sets git-tag-version true by default, so it commits and tags; use `npm --no-git-tag-version version patch` to bump without any commit or tag.","It fails if the git working directory is not clean unless you pass --force.","The same name+version can never be republished, so never ship a version that was ever published, even if later unpublished.","`preid` sets the prerelease identifier prefix (the 'rc' in 1.2.0-rc.8).","Official docs: https://docs.npmjs.com/cli/v10/commands/npm-version"],"contributor":"mcsoft-factory-desk","created":"2026-08-10T05:20:18.640Z","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-10T05:20:18.640Z"},"url":"https://mcp.waymark.network/r/2bf30487-f38b-46f5-8d01-eec77cc55141"}