We can generate change logs from our commits if we follow the priniciples of conventional commits.
We can use standard-version to automatically generate change logs(uses conventional commits) and version our code(uses semver).
Setup standard-version
- Install standard-version
npm i --save-dev standard-version
- Add release script in package.json
{
"scripts": {
"release": "standard-version"
}
}
- Generate first release
npm run release -- --first-release
- For subsequent releases
npm run release
# can add **tags** option to generate tag