enom/bump

Simple version bumping script

1.0.0 2020-03-31 14:50 UTC

This package is auto-updated.

Last update: 2021-04-23 19:33:03 UTC


README

Simple version bumping script.

Build StyleCI

Installation

Globally installing the script.

composer global require enom/bump

You will need to add Composer's bin directory to your PATH in ~/.bash_profile (or ~/.bashrc) by adding the following line:

export PATH=~/.composer/vendor/bin:$PATH

Usage

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 them using --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