Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.34 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.34 KB

Release

Latest Stable Version Latest Unstable Version Build Status Coverage Status SensioLabsInsight

Lightweight library to update package version according Semantic Versioning. Aditionally can create git tag, commit and push

Installation

composer require luiscoms/release dev-master

Usage

Let's consider the composer.json file

{
    "version": "0.0.1",
    "require": {
        "luiscoms/release": "dev-master"
    }
}

To view current version

vendor/bin/release [current]
0.0.1

To update patch

vendor/bin/release bump --patch|--bugfix
0.0.2

To update minor

vendor/bin/release bump --minor|--feature
0.1.0

To update major

vendor/bin/release bump --major
1.0.0