@spscommerce/slasher
v7.1.2
Published
Semantic release cutter
Downloads
439
Keywords
Readme
Slasher
Semantic release cutter 🔪🔪🔪
Installation
yarn add --dev @spscommerce/slasher
You will probably also want to install it globally, so you can run it with slasher
instead of npx slasher
:
npm install -g @spscommerce/slasher
Why "Slasher"?
Because it "cuts" things and was first written on Halloween. 🎃
Usage
Usage: slasher [options]
Options:
--version Show version number [boolean]
--verbose, -v Print additional details to console [boolean]
--dry-run, -d Do a dry run. (Includes --verbose) [boolean]
--from-tag, -t Do a dry run showing what slasher would do based from the
given tag instead of from the most recent tag. (Includes
--dry-run) [string]
--help, -h Show help [boolean]
When you run slasher
it will do the following things, in order:
- Determine a version bump based on conventional commit messages since the last "vX.Y.Z" git tag
- If there is a version bump, update package.json with the new version number
- Create or update CHANGELOG.md using conventional-changelog
- Add package.json and CHANGELOG.md to a commit called "chore(release): X.Y.Z [skip ci]" and tag it (without pushing)