LMC’s Conventional Changelog preset for GitHub repositories
NPM:
npm i --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-github
Yarn:
yarn add --dev @commitlint/cli @commitlint/config-conventional @lmc-eu/conventional-changelog-lmc-github
Create a commitlint.config.js file with the following contents:
'use strict';
module.exports = {
extends: ['@commitlint/config-conventional'],
parserPreset: '@lmc-eu/conventional-changelog-lmc-github',
};
In a package.json define following scripts:
{
"scripts": {
"changelog": "conventional-changelog -p lmc-github -i CHANGELOG.md -s",
"changelog:origin": "conventional-changelog -p lmc-github -i CHANGELOG.md -s -r 0"
}
}
For example see example changelog file