-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(other): 新增release-it自动发布和自动changelog功能
- Loading branch information
v_jpch
committed
Aug 11, 2023
1 parent
d630f3b
commit 44672cb
Showing
5 changed files
with
127 additions
and
21 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"hooks": { | ||
"after:bump": "auto-changelog -p" | ||
}, | ||
"git": { | ||
"changelog": "auto-changelog --stdout --commit-limit false", | ||
"requireCleanWorkingDir": false, | ||
"requireUpstream": true, | ||
"requireCommits": false, | ||
"addUntrackedFiles": false, | ||
"commit": true, | ||
"commitMessage": "chore: release v${version}", | ||
"commitArgs": "", | ||
"tag": true, | ||
"tagName": "v${version}", | ||
"tagAnnotation": "Release v${version}", | ||
"tagArgs": "", | ||
"push": true, | ||
"pushArgs": "--follow-tags", | ||
"pushRepo": "origin" | ||
}, | ||
"npm": { | ||
"publish": false, | ||
"publishPath": "", | ||
"access": null, | ||
"otp": null | ||
}, | ||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"infile": "CHANGELOG.md", | ||
"preset": { | ||
"name": "conventionalcommits", | ||
"header": "# 📋 更新历史 \n\n", | ||
"types": [ | ||
{ "type": "feat", "section": "✨ Features | 新特性" }, | ||
{ "type": "fix", "section": "🐛 Bug Fixes | Bug 修复" }, | ||
{ "type": "perf", "section": "⚡ Performance Improvements | 性能优化" }, | ||
{ "type": "revert", "section": "⏪ Reverts | 代码回退" }, | ||
{ "type": "chore", "section": "📦 Chores | 其余更新" }, | ||
{ "type": "docs", "section": "📝 Documentation | 文档修改" }, | ||
{ "type": "style", "section": "💄 Styles | 代码格式调整", "hidden": true }, | ||
{ "type": "refactor", "section": "♻ Code Refactoring | 代码重构" }, | ||
{ "type": "test", "section": "✅ Tests | 测试用例" }, | ||
{ "type": "build", "section": "👷 Build System | 构建" }, | ||
{ "type": "ci", "section": "🔧 Continuous Integration | CI 配置" } | ||
], | ||
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}" | ||
} | ||
} | ||
} | ||
} |