bumpify-cli extends npm version patch/minor/major with additional automation:
- β
Updates
package.json(likenpm version) - β
Creates/updates
public/version.jsonautomatically - β Commits & tags the changes in Git
Install bumpify-cli globally to use it in any project:
npm install -g bumpify-cliRun bumpify just like npm version:
bumpify version patch
bumpify version minor
bumpify version major- The version in
package.jsonis updated. - The new version is written to
public/version.json. - The changes are committed (
git commit -m "Bump version to X.X.X"). - A Git tag is created (
git tag vX.X.X).
bumpify version patchπ‘ Updates from 1.0.0 β 1.0.1
bumpify version minorπ‘ Updates from 1.0.0 β 1.1.0
bumpify version majorπ‘ Updates from 1.0.0 β 2.0.0
| Feature | npm version |
bumpify-cli |
|---|---|---|
Updates package.json |
β Yes | β Yes |
Creates/updates public/version.json |
β No | β Yes |
| Commits the changes | β Yes | β Yes |
| Creates a Git tag | β Yes | β Yes |
If you ever need to remove bumpify-cli:
npm uninstall -g bumpify-cliMIT License Β© Antonio BudiseliΔ
We welcome contributions! To contribute:
- Fork the repo
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m "Added feature XYZ") - Push to the branch (
git push origin feature-branch) - Create a PR π
If you found bumpify-cli helpful, please star this repo β on GitHub and share your feedback!
For issues or feature requests, open an issue here.
π Happy versioning with bumpify-cli! π