Release Workflow
Analyze git changes, generate a conventional commit message, bump version, publish to npm, commit, and push.
Usage
/release or /release minor
Steps
- •
Analyze changes: Run
git diff --statto see what changed - •
Generate conventional commit message in the format:
code<type>(<scope>): <description>
Where:
- •type:
fix,feat, orrefactor(based on changes) - •scope: Topic from changed files (e.g.,
deps,cli,core,docs) - •description: Concise summary (lowercase, no period, imperative mood)
Example:
feat(cli): add new benchmark command - •type:
- •
Determine version bump:
- •If
$ARGUMENTSisminor→ minor bump - •Otherwise:
feat→ minor, all others → patch
- •If
- •
Execute release:
- •
npm version <patch|minor> --no-git-tag-version - •
npm run build - •
npm publish - •
git add . - •
git commit -m "<conventional-commit-message>" - •
git push
- •
Conventional Commit Rules
- •Type:
fix,feat, orrefactor - •Scope: Short topic in parentheses (required)
- •Description: Lowercase, imperative mood, no period
- •Format:
type(scope): description
Stop if any command fails.