git-release

Release a new version of your Git project

release

Release a new version of your Git project

Install with npm

npm install -g git-release
release

By default, this will

  • execute .git/hooks/pre-release (if present)
  • increment the patch version (ex: from 1.2.0 to 1.2.1) in the package.json file using the Semantic Versioning specification
  • commit the package.json file
  • create a Git tag for the new version
  • push to the remote server
  • execute .git/hooks/post-release (if present)

You can also increment the minor version (ex: from 1.2.0 to 1.3.0)

release minor

Or the major version (ex: from 1.2.0 to 2.0.0)

release major

Or force a specific version

release 1.3.0-alpha