Facilitate releases in node projects.
Extends git flow model. Requires that git flow is initialized with master and develop branches.
Creating a release does the following:
- Updates the version of the project.
- Creates a
release/${version}branch, where${version}is the updated version number. - Commits the version upgrade to the release.
- Merges the branch into
masteranddevelop. - Tags
masterwith${version} - Pushes updated
masteranddevelop, and pushes newtag.
sudo make install
This updates the package version minor release (i.e. 0.X++.0):
git release
This updates the package version major release (i.e. X++.0.0):
git major-release
Note that the minor version values are reset to 0.