Release
Guide the user through a Cortex TMS release.
Pre-release Gate
Before starting, run the full quality gate:
pnpm test— must passpnpm run lint— must have 0 errorspnpm run build— must succeednode bin/cortex-tms.js validate --strict— must pass
If any step fails, STOP and report. Do not proceed with a broken release.
Release Steps (each requires user approval)
Bump version — show the new version number and the command. Wait for approval.
npm version [patch|minor|major]Sync version tags — update all version markers across docs.
node scripts/sync-project.jsUpdate CHANGELOG.md — draft release notes from commits since last tag. Show draft, wait for approval.
Commit release — show commit message, wait for approval.
Create git tag — show tag command, wait for approval.
git tag v[version]Push — show push command, wait for approval.
git push origin main --tagsPublish to NPM — show publish command, wait for approval.
npm publishCreate GitHub release — draft release notes, wait for approval.
Rules
- NEVER skip a step
- NEVER proceed without explicit user approval at each gate
- If something fails mid-release, stop and explain how to recover
Arguments
$ARGUMENTS