enom/bump

Simple version bumping script

Maintainers

Details

gitlab.com/enom/bump

1.0.0 2020-03-31 14:50 UTC

This package is auto-updated.

Last update: 2022-05-23 21:56:58 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