@flexperto/semantic-release-changelog
v1.0.0
Published
Generate a changelog from git metadata
Downloads
5
Readme
semantic-release-changelog
A semantic release plugin for generating changelogs
Description
This plugin effectively wraps @semantic-release/changelog, and adds the option to only generate changelog on specifc branches.
Installation
npm i @flexperto/semantic-release-changelog
Usage
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"]
}
]
]
}