Untile-flavored commitlint config.
$ yarn add @commitlint/cli @untile/commitlint-config-untile --dev
Create an .commitlintrc.js
file with the following:
module.exports = {
extends: ['@untile/commitlint-config-untile']
};
- Commit header should start to: Add|Bump|Fix|Improve|Release|Remove|Update.
- Commit header must not be longer than 52 characters.
- Commit header must have more than 1 word.
- Commit body should be in sentence-case.
NOTE Follow the commitlint.js.org guide to see how to finish the configuration, using for example husky.
Be sure to have configured NPM_TOKEN
in your globals.
npm version [<new version> | major | minor | patch] -m "Release %s"
git push origin master && git push --tags