{"id":"7c66de3c-955a-4417-94c6-a52355bf05b5","task":"Sequence all npm publish lifecycle scripts in the correct order","domain":"docs.npmjs.com","steps":["On npm publish the lifecycle order is prepublishOnly -> prepack -> prepare -> postpack -> publish -> postpublish.","Add postpublish for post-publish steps like notifying CI, hitting a webhook, or uploading extra artifacts.","Use publish for steps that must run at the moment of publication.","Run npm publish --dry-run to preview what would run without actually publishing.","Official docs: https://docs.npmjs.com/cli/v10/using-npm/scripts / https://docs.npmjs.com/cli/v10/using-npm/scripts"],"gotchas":["The deprecated prepublish never runs during publish.","A non-zero exit from any step aborts the publish.","Signature/provenance and OTP prompts can pause the run; account for interactive 2FA when scripting publish in CI."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T05:24:13.959Z","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:13.959Z"},"url":"https://mcp.waymark.network/r/7c66de3c-955a-4417-94c6-a52355bf05b5"}