@hacxy/bump
v0.4.0
Published
Version release tools.
Readme
@hacxy/bump
A CLI tool for automating version bumping, changelog generation, and package publishing.
Features
- 🚀 Interactive Version Bumping: Select from patch, minor, major, beta, alpha, or custom version
- 📝 Automatic Changelog Generation: Generate changelog using conventional-changelog
- 🔨 Build Support: Optional build step before release
- 🏷️ Git Integration: Automatically commit, tag, and push changes
- 📦 NPM Publishing: Publish to npm with support for
latestandnexttags - 🔄 Error Recovery: Automatic rollback on errors
Requirements
- Node.js
^18.0.0 || >=20.0.0 - Git (optional, for git operations)
- npm (for publishing)
Install
npm install -g @hacxy/bumpOr use with npx:
npx @hacxy/bumpUsage
Run the command in your project directory:
bumpThe tool will guide you through an interactive process:
- Select release type: Choose from patch, minor, major, beta, alpha, or enter a custom version
- Select tag type: Choose
latestornextfor npm publishing - Confirm release: Review and confirm the release version
- Build (optional): Choose whether to run the build command from
package.json - Generate changelog (optional): Automatically generate
CHANGELOG.mdusing conventional commits - Git operations (optional): Commit changes, create git tag, and push to remote
- Publish to npm (optional): Publish the package to npm registry
Workflow
The tool follows this workflow:
- Updates
package.jsonversion - Optionally runs
npm run build - Optionally generates
CHANGELOG.md - Optionally commits changes with message:
chore: release: v{version} - Optionally creates git tag:
v{version} - Optionally pushes commits and tags to remote
- Optionally publishes to npm with selected tag
License
Author
hacxy
- Email: [email protected]
- Website: https://hacxy.cn
