Simple version bumping script
Simple version bumping script.
Globally installing the script.
composer global require enom/bump
You will need to add Composer's bin directory to your PATH in
~/.bashrc) by adding the following line:
Display the current composer.json semver:
bump -v # Displays (e.g.) "composer.json version: 1.2.3"
Bumps composer.json's semver.
bump -n # Bumps composer.json's version from (e.g.) 1.2.3 to 1.3.0
You can also bump other JSON files that have a "version" attribute by specifying
--files and separating them with commas:
bump --patch --files composer.json,package.json # Bumps both file versions from (e.g.) 1.2.3 to 1.2.4