forked from 11273/goofish-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.release-it.json
More file actions
79 lines (79 loc) · 3.17 KB
/
Copy path.release-it.json
File metadata and controls
79 lines (79 loc) · 3.17 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://raw.githubusercontent.com/release-it/release-it/main/schema/release-it.json",
"git": {
"commitMessage": "chore: release v${version}",
"tagName": "v${version}",
"requireCleanWorkingDir": true,
"requireBranch": "main",
"push": true,
"pushRepo": "origin"
},
"github": {
"release": true,
"releaseName": "v${version}",
"releaseNotes": null,
"autoGenerate": true,
"draft": false,
"preRelease": false,
"tokenRef": "GITHUB_TOKEN"
},
"npm": {
"publish": false,
"registry": "https://registry.npmjs.org/",
"access": "public",
"skipChecks": false
},
"hooks": {
"before:init": [
"npm run typecheck",
"npm run lint"
],
"before:release": [
"npm run build:prod"
],
"after:release": [
"echo '📦 开始发布到npm...'",
"npm publish --access public --registry https://registry.npmjs.org/",
"echo '🎉 发布成功!版本: v${version}'"
]
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits",
"types": [
{ "type": "feat", "section": "✨ Features | 新功能" },
{ "type": "fix", "section": "🐛 Bug Fixes | Bug 修复" },
{ "type": "perf", "section": "⚡ Performance Improvements | 性能优化" },
{ "type": "refactor", "section": "♻ Code Refactoring | 代码重构" },
{ "type": "style", "section": "💄 Styles | 代码格式" },
{ "type": "docs", "section": "📝 Documentation | 文档" },
{ "type": "test", "section": "✅ Tests | 测试" },
{ "type": "build", "section": "👷 Build System | 构建" },
{ "type": "ci", "section": "🔧 Continuous Integration | CI 配置" },
{ "type": "revert", "section": "⏪ Reverts | 回退" },
{ "type": "chore", "section": "🎫 Chores | 其他更新" },
{ "type": "config", "section": "🔨 Configuration | 配置" },
{ "type": "polish", "section": "💅 Polish | 优化" },
{ "type": "ui", "section": "🎨 UI/UX | 界面" },
{ "type": "ux", "section": "🧑💻 User Experience | 用户体验" },
{ "type": "i18n", "section": "🌐 Internationalization | 国际化" },
{ "type": "typo", "section": "✏️ Typos | 错别字" },
{ "type": "security", "section": "🔒 Security | 安全" },
{ "type": "deps", "section": "📦 Dependencies | 依赖" },
{ "type": "lint", "section": "🚨 Linting | 代码检查" },
{ "type": "release", "section": "🚀 Releases | 发布" },
{ "type": "deploy", "section": "🚢 Deployments | 部署" },
{ "type": "init", "section": "🎉 Init | 初始化" },
{ "type": "prune", "section": "🔥 Prune | 清理" },
{ "type": "license", "section": "📄 License | 许可证" }
]
},
"infile": "CHANGELOG.md",
"header": "# 更新日志\n\n所有重要的项目更改都将记录在此文件中。\n\n此项目遵循 [语义化版本](https://semver.org/lang/zh-CN/) 规范。\n\n",
"gitRawCommitsOpts": {
"path": "."
}
}
}
}