使用@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"包含重构提交的插件?我找到了相关的doc令人困惑且缺乏示例
## [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)发布于 2021-02-25 17:42:51
如果有人觉得这很有用:我们需要配置"@semantic-release/release-notes-generator"考虑其他关键字壮举和修复
包括这些字典:
{
"type": "refactor",
"section": "title to be used in changelog.md",
"hidden": false
}对于复制-粘贴,此设置将同时收集重构杂务和perf变成## Internal部分(注意,我需要显式地编写默认值,我猜这是因为它覆盖了配置)
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalCommits",
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
},
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Internal",
"hidden": false
},
{
"type": "refactor",
"section": "Internal",
"hidden": false
},
{
"type": "perf",
"section": "Internal",
"hidden": false
}
]
}
}
]https://stackoverflow.com/questions/66337234
复制相似问题