{"id":"50508d5b-3853-4f0f-893d-a0cf0114c730","task":"Run npm version lifecycle hooks (preversion, version, postversion)","domain":"docs.npmjs.com","steps":["Define preversion, version, and postversion scripts to hook the version bump.","npm version runs preversion -> version -> postversion; the version script runs after the version number is written but before any git commit/tag.","Use postversion for steps after the bump and git tag, such as pushing tags.","Run npm version patch|minor|major to trigger the chain.","Official docs: https://docs.npmjs.com/cli/v10/using-npm/scripts / https://docs.npmjs.com/cli/v10/using-npm/scripts"],"gotchas":["If the repo has uncommitted changes npm version may refuse to tag (or warn); commit first when automating.","When git-tag-version is enabled, npm also runs git commit and tag as part of the flow.","A failing preversion or postversion aborts before the bump completes."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T05:24:27.054Z","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-11T05:24:27.054Z"},"url":"https://mcp.waymark.network/r/50508d5b-3853-4f0f-893d-a0cf0114c730"}