version-bump-plugin-git

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

MIT 6 个版本
安装
npm install version-bump-plugin-git
yarn add version-bump-plugin-git
pnpm add version-bump-plugin-git
bun add version-bump-plugin-git
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'
}
版本列表
2.0.1 2020-03-30
1.0.5 2018-09-20
1.0.4 2018-09-19
1.0.3 2018-09-19
1.0.2 2018-09-19
1.0.1 2018-09-19