Release Automation
Overview
Automated versioning and releases using semantic-release. Covers version bump rules, semantic-release setup, post-push synchronization, and configuration files.
Quick Reference
Version Bump Mapping
| Commit Type | Bump | Example |
|---|---|---|
upgrade |
MAJOR | Breaking API change |
feat |
MINOR | New feature |
fix |
PATCH | Bug fix |
perf |
PATCH | Performance improvement |
docs |
NONE | Documentation |
refactor |
NONE | Code restructure |
Release Flow
Push to main → GitHub Actions
→ semantic-release analyzes commits
→ Determines version (MAJOR/MINOR/PATCH)
→ Updates package.json + CHANGELOG.md
→ Creates git tag + GitHub Release
Post-Release Sync
git fetch origin --tags
git checkout dev
git rebase main
References
- Versioning — Commit-to-version mapping
- Semantic Release — Automation setup
- Post-Release Workflow — Post-push sync guide
- Configuration — commitlint + .releaserc.json + CI