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-custom-changelog
yarn add -D release-it-custom-changelog
In the release-it config, for example:
"plugins": {
"release-it-custom-changelog": {
"infile": "CHANGELOG.md",
"fileHeader": {
"title": "# Changelog\n\n",
"description": "A string to be used as the main header section of the CHANGELOG.\n",
},
"withEmoji": true,
"language": "zh-CN",
"showAuthor": true,
"showEmail": false,
"parserOpts": "...",
"bump":"..."
}
}
The Options description.
Type: string
Default: ``
If ’‘
or undefined
, will not be written to the log file
Type: object
Default: { "title": "# Changelog\n\n", "description": "A string to be used as the main header section of the CHANGELOG.\n", }
Type: boolean
Default: true
If false
, There will be no emoji before commit type
Type: string
Default: zh-CN
Only en-US
and zh-CN
Type: boolean
Default: false
If true
, will show commit author
Type: boolean
Default: false
If true
, will show commit email
See the conventional-commits-parser docs.
See the conventional-recommended-bump docs.