This guide walks you through bumping versions, pushing tags, and automating releases using the cli bump tool.
When you run:
cli bumpAdd -u to preview notes as "Unreleased" or omit it for version headings. Pass -r <count> to control the release count (defaults to 1).
You’ll see:
? Select the version bump type: (Use arrow keys)
❯ patch (e.g., 1.0.0 → 1.0.1)
minor (e.g., 1.0.1 → 1.1.0)
major (e.g., 1.1.0 → 2.0.0)
📋 Git Log Preview:
abcd123 chore: cleanup logs
a9f87cb feat: add new --version flag
e7a2d90 fix: typo in CLI help output
...
📄 CHANGELOG Preview:
# Changelog
## [1.1.0] - 2024-05-09
### Added
- support for --version
- config.json fallback
? Proceed with minor bump and push? (Y/n)
v1.1.0
[main b74f891] chore(release): bump version to 1.1.0
1 file changed, 1 insertion(+), 1 deletion(+)
Pushed to origin/main
Tag v1.1.0 pushed
✅ Version bump complete and pushed.
package.jsonis updated- Git commit + tag is created
- Push to GitHub triggers:
semantic-release- Auto changelog
- GitHub release
- npm publish
npm version patch -m "chore(release): bump version to %s"
git push && git push --tagsAdd the following secrets to your GitHub repo:
NPM_TOKEN→ from npmjs.com (Automation token)GITHUB_TOKEN→ auto-injected by GitHub Actions
Happy CLI shipping! ✨