Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

version-bump-plugin-git

theogravity367MIT2.0.1TypeScript support: included

Version strategy for bumping version based on the last git commit message

version, versioning, cli, bump, semver, package, revision, prerelease, commit, git, release, increment, automation, circle-ci, travis-ci, automatic, package, package.json, file, version-bump-plugin

readme

version-bump-plugin-git

npm version CircleCI

A version strategy for version-bump.

Uses the last git commit subject to determine the bump level. Will bump based on the following text:

  • [major]
  • [minor]
  • [patch]
  • [pre-major]
  • [pre-minor]
  • [pre-patch]
  • [pre-release]
  • [build-release]

Default is the lowest version possible.

Install

Make sure you have version-bump installed, then install the strategy with:

npm i version-bump-plugin-git --dev

Usage

From command line:

$ version-bump git-commit-msg

As a config file:

// save as .version-bump.js in the root of your project
module.exports = {
  strategy: 'git-commit-subj'
}

changelog

2.0.1 - Mon Mar 30 2020 09:23:56

Update CI, use typescript.

Breaking:

  • Changed the strategy name from git-commit-msg -> git-commit-subj to reflect it pulls from the subject line

1.0.5 - Thu Sep 20 2018 08:11:21

CI fixes

1.0.4 - Wed Sep 19 2018 16:59:10

Update version-bump version.

1.0.3 - Wed Sep 19 2018 16:31:39

First version