Generate change logs from conventional commits

Generate change logs from conventional commits

(1 min read)

We can generate change logs from our commits if we follow the principles 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