npm

Need private packages and team management tools?Check out npm Orgs. »

npm-version-git-cli

2.3.1 • Public • Published

npm-version-git-cli

Increment version of package.json according to git log

Fork notice

This is a fork of https://github.com/ronapelbaum/npm-version-git which includes

How it works

Parse the latest git commit message, search for regex, then bump npm version ? accordingly.

I.e:

last commit message: fixed issue #123 [minor] => npm version minor

last commit message: fixed typo => npm version patch

Install

npm i -g npm-version-git-cli

Usage

In package.json:

"scripts"{
    "prepublishOnly": "npm-version-git-cli",
  }

Options

-rgx

The regex pattern to work on git commit message.

npm-version-git-cli -rgx "\[(major|minor|patch)\]"

-def

The default semver incase regex did't match.

npm-version-git-cli -def patch

Keywords

install

npm i npm-version-git-cli

Downloadsweekly downloads

7

version

2.3.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability