What problem does it solve?
Prevents broken, inconsistent, or non-published npm releases by enforcing a single definitive release checklist with hard stop rules.
Core Features & Use Cases
- Semver Guardrails: Ensures only 3-part semver or valid prerelease formats are used, preventing npm version mangling from invalid 4-part versions.
- NPM Token Verification: Validates that NPM_TOKEN is an Automation token (not a 2FA user token) to avoid CI EOTP failures.
- Branch/Tag Hygiene: Releases only from main with a clean working tree and avoids tag collisions.
- Release Publish Certainty: Requires GitHub Releases to be published (not draft) so the publish workflow reliably triggers.
- Post-Publish Verification & Smoke Tests: Confirms npm registry publication, correct latest dist-tags, and successful real-world installs for both SDK and CLI.
- Rollback Playbook: Provides nuclear (unpublish), preferred (deprecate + hotfix), and GitHub/tag/revert recovery steps for broken releases.
Quick Start
Use the release-process runbook to prepare a new Squad release by validating semver, confirming NPM_TOKEN is an Automation token, bumping package versions in lockstep, tagging and publishing the GitHub Release (not draft), then verifying npm latest dist-tags and performing install smoke tests.