-
Notifications
You must be signed in to change notification settings - Fork 14
/
.releaserc.js
43 lines (43 loc) · 1.31 KB
/
.releaserc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 Electron Template 更新日志',
},
],
'@semantic-release/npm', // 自动更新版本号,如果是 npm 模块则会触发发布流程
// 在 github 发布 Release 版本
[
'@semantic-release/github',
{
assets: ['release'],
},
],
// 推送代码回 git
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json'],
message:
':bookmark: chore(release): ${nextRelease.gitTag} [skip ci] \n\n${nextRelease.notes}',
},
],
],
};