Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.5 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.5 KB

Standard Version

Build Status NPM version

stop using npm version, use standard-version it does so much more:

Automatic release and CHANGELOG management, using GitHub's new squash button and the workflow outlined in conventional-changelog-cli.

how it works:

  1. when you land commits on your master branch, select the Squash and Merge option.
  2. add a title and body that follows the conventional-changelog conventions.
  3. when you're ready to release to npm:
  4. checkout master.
  5. run standard-version.
  6. git push --tags; git push origin master; npm publish.

standard-version does the following:

  1. bumps the version in package.json (based on your commit history).
  2. runs conventional-changelog and updates CHANGELOG.md.
  3. commits package.json and CHANGELOG.md.
  4. tags a new release.

Initial CHANGELOG.md Generation

When you're generating your changelog for the first time, simply do:

standard-version --first-release

Installation

npm i standard-version

Automating

Add this to your package.json

{
  "scripts": {
    "release": "standard-version"
  }
}

License

ISC