-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.releaserc.json
More file actions
79 lines (79 loc) · 2.72 KB
/
Copy path.releaserc.json
File metadata and controls
79 lines (79 loc) · 2.72 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
{
"branches": [
"main"
],
"tagFormat": "v${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "docs", "release": false },
{ "type": "style", "release": false },
{ "type": "test", "release": false },
{ "type": "build", "release": false },
{ "type": "ci", "release": false },
{ "type": "chore", "release": false }
],
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "✨ 新功能" },
{ "type": "fix", "section": "🐛 缺陷修复" },
{ "type": "perf", "section": "⚡ 性能优化" },
{ "type": "refactor", "section": "♻️ 重构" },
{ "type": "revert", "section": "⏪ 回滚" },
{ "type": "docs", "section": "📝 文档", "hidden": true },
{ "type": "style", "section": "💄 样式", "hidden": true },
{ "type": "test", "section": "✅ 测试", "hidden": true },
{ "type": "build", "section": "📦 构建", "hidden": true },
{ "type": "ci", "section": "👷 CI", "hidden": true },
{ "type": "chore", "section": "🔧 杂项", "hidden": true }
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# 更新日志\n\n本项目所有值得关注的变更都会记录在此文件中。\n版本号遵循 [语义化版本 SemVer](https://semver.org/lang/zh-CN/),提交信息遵循 [Conventional Commits](https://www.conventionalcommits.org/zh-hans/)。"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "node scripts/version-bump.mjs ${nextRelease.version}"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"app/package.json",
"app/package-lock.json",
"website/package.json",
"website/package-lock.json"
],
"message": "chore(release): v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}