-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 parent
23bec6b
commit 05d4a08
Showing
2 changed files
with
10 additions
and
85 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,27 +1,27 @@ | ||
module.exports = { | ||
branches: ['main'], // 指定在哪个分支下要执行发布操作 | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', // 解析 commit 信息,默认就是 Angular 规范 | ||
'@semantic-release/release-notes-generator', | ||
'@semantic-release/commit-analyzer', // 用于分析提交的类型,feat和fix类型都会发版和升级版本号 | ||
'@semantic-release/release-notes-generator', // 生成 CHANGELOG.md 文件 | ||
[ | ||
'@semantic-release/changelog', | ||
'@semantic-release/changelog', // 将 commit 记录到项目的 changelog 文件中 | ||
{ | ||
changelogFile: 'CHANGELOG.md', // 把发布日志写入该文件 | ||
changelogFile: 'CHANGELOG.md', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/npm', | ||
'@semantic-release/npm', // 用来更新 package.json 的,如果不需要发到 npm 可以设 npmPublish 为 false | ||
{ | ||
npmPublish: false, | ||
}, | ||
], | ||
'@semantic-release/github', | ||
'@semantic-release/github', // 发布 GitHub Release 并对已发布的拉取请求/问题发表评论。 | ||
[ | ||
'@semantic-release/git', | ||
'@semantic-release/git', // 把发版过程中修改的文件提交到 Git 仓库 | ||
{ | ||
assets: ['CHANGELOG.md', 'package.json'], // 前面说到日志记录和版本好是新增修改的,需要 push 回 Git | ||
assets: ['CHANGELOG.md', 'package.json'], | ||
}, | ||
], | ||
'semantic-release-vsce', | ||
'semantic-release-vsce', // 发布到 VSCode Marketplace | ||
], | ||
} |
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