A semantic release plugin for generating changelogs
This plugin effectively wraps @semantic-release/changelog, and adds the option to only generate changelog on specifc branches.
npm i @flexperto/semantic-release-changelog
See upstream. The configuration options are extend by the branches
property, which needs to be a RegExp if defined. If defined, the changelog will only be generated, when semantic-release is executed on a branch that matches the RegExp. Eg. this configuration will only generate a changelog on master and develop branches
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "docs/CHANGELOG.md",
"branches": "^(master|develop)$"
}
],
[
"@semantic-release/git",
{
"assets": ["docs/CHANGELOG.md"]
}
]
]
}