Generate change logs from conventional commits

Baijanath Tharu · April 2, 2022

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

  1. Install standard-version
npm i --save-dev standard-version
  1. Add release script in package.json
{
  "scripts": {
    "release": "standard-version"
  }
}
  1. Generate first release
npm run release -- --first-release
  1. For subsequent releases
npm run release
# can add **tags** option to generate tag

Twitter, Facebook