-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,3 @@ | ||
module.exports = { | ||
plugins: [ | ||
//负责解析 commit | ||
[ | ||
'@semantic-release/commit-analyzer', | ||
{ | ||
// 自定义配置,如果不填则是默认的 conventional-changelog-angular | ||
config: 'conventional-changelog-gitmoji-config', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/release-notes-generator', //此处生成 github-release 的日志 | ||
{ | ||
//指定配置,这里才是负责生成日志的,也就是说,如果自定义了writerOpts,只有在这里写才会生效 | ||
config: 'conventional-changelog-gitmoji-config', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/changelog', //此处会调用上一个插件生成的新增日志,然后合并到原有日志中 | ||
{ | ||
changelogFile: 'CHANGELOG.md', | ||
changelogTitle: '# umi-plugin-extensions 更新日志', | ||
}, | ||
], | ||
'@semantic-release/npm', //如果是npm包会自动更新版本号并发布 | ||
['@semantic-release/github'], // 推送代码回到GitHub | ||
[ | ||
'@semantic-release/git', //发布release | ||
{ | ||
assets: [ | ||
// 这里的 assets 配置的是要重新 push 回去的东西 | ||
// 如果不列的话会将全部内容都合并到 release 中 | ||
'CHANGELOG.md', | ||
'package.json', | ||
], | ||
message: | ||
':bookmark: chore(release): v${nextRelease.version} [skip ci]\n\nhttps://github.com/arvinxx/umi-plugin-extensions/releases/tag/${nextRelease.gitTag}', | ||
}, | ||
], | ||
], | ||
extends: ['semantic-release-config-gitmoji'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters