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.
```bash
npm version [patch|minor|major]
```
- Sync version tags — update all version markers across docs.
```bash
node scripts/sync-project.js
```
- Update 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.
```bash
git tag v[version]
```
- Push — show push command, wait for approval.
```bash
git push origin main --tags
```
- Publish to NPM — show publish command, wait for approval.
```bash
npm publish
```
- Create 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