包详细信息

pob-release

christophehurpeau319ISC不推荐使用5.6.3

use standard-version instead

release with ease

自述文件

pob-release

release with ease

Install

npm install --save-dev pob-release repository-check-dirty

How to use

Direct use

node_modules/.bin/pob-release [version]

With npm scripts npm run release

Edit your package.json:

{
  "scripts": {
    "lint": "eslint ...",
    "preversion": "npm run lint",
    "version": "pob-version",
    "release": "repository-check-dirty && pob-release"
  }
}

What it does

  1. Call npm version (modify package.json, create a commit, create a tag)
  2. (Optional with pob-version) Create/Update AUTHORS
  3. (Optional with pob-version) Create/Update CHANGELOG.md (and let you edit with your $EDITOR)
  4. Call git push and git push [tag]

Options

pob-release [version]

Cli

If you use npm script:

npm run release -- [version]