使用@semantic-release
我想考虑对两者进行重构更改,触发新版本并在 CHANGELOG.md 文件中写下。
到目前为止,我已经包含了重构提交,"@semantic-release/commit-analyzer"
因此它们会触发补丁发布:
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"releaseRules": [
{
"type": "refactor",
"release": "patch"
}
]
}
],
但是这些提交消息不包含在 CHANGELOG 文件中,我如何设置"@semantic-release/release-notes-generator"
插件以包含重构提交?我发现相关文档令人困惑且缺乏示例
- 生成的 CHANGELOG 示例
## [0.6.4](.../compare/v0.6.3...v0.6.4) (date)
## [0.6.3](.../compare/v0.6.2...v0.6.3) (date)
- 所需的变更日志
## [0.6.4](.../compare/v0.6.3...v0.6.4) (date)
[[>>INCLUDE HERE COMMIT MSG + LINK<<]]
## [0.6.3](.../compare/v0.6.2...v0.6.3) (date)