@domir/conventional-changelog-only
v2.1.0
Published
Conventional changelog plugin for release-it
Downloads
2
Maintainers
Readme
Conventional Changelog plugin for release-it
This plugin will provide the recommended bump to release-it, and update the changelog file (e.g. CHANGELOG.md
).
npm install --save-dev @release-it/conventional-changelog
Config
In the release-it config, for example:
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
}
...or another example:
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{}
]
}
}
}
- Omit the
infile
at will. If set, but the file does not exist yet, it's created with the full history. - Please find the
list of available presets
(
angular
,ember
, etc). - Options are passed verbatim to conventional-recommended-bump and conventional-changelog.
GitHub Actions
When using this plugin in a GitHub Action, make sure to set
fetch-depth: 0
so the history is
available to determine the correct recommended bump and changelog.
Also see https://github.com/release-it/release-it/blob/master/docs/ci.md#github-actions