After you’ve learnt about standardising git commit messages you can use that data and do some nice things.
You can automate versioning and CHANGELOG generation using Semantic Versioning
First, use NodeJS to install the “standard-version” dependency. This is only required in development.
npm install standard-version --save-dev
Next, you can add the command to the package.json
scripts, so you can easily call it.
{
"scripts": {
"release": "standard-version"
}
}
Now, when you run npm run release
it will version the based on the commit messages and
generate a changelog automatically.