-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.releaserc.js
More file actions
143 lines (143 loc) · 6.65 KB
/
.releaserc.js
File metadata and controls
143 lines (143 loc) · 6.65 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
module.exports = {
branches: [
"main",
],
plugins: [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "chore", "scope": "release", "release": false },
{ "type": "style", "release": false },
{ "type": "ci", "release": false },
{ "type": "test", "release": false },
{ "type": "docs", "release": false }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "chore", "scope": "release", "release": false },
{ "type": "style", "release": false },
{ "type": "ci", "release": false },
{ "type": "test", "release": false },
{ "type": "docs", "release": false }
],
"presetConfig": {
"types": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "perf", "section": "Performance Improvements"},
{"type": "revert", "section": "Reverts"},
{"type": "test", "section": "Tests", "hidden": true},
{"type": "build", "section": "Build System", "hidden": true},
{"type": "docs", "section": "Documentation", "hidden": true},
{"type": "style", "section": "Code Styles", "hidden": true},
{"type": "chore", "section": "Miscellaneous Chores", "hidden": true},
{"type": "refactor", "section": "Code Refactoring", "hidden": false},
{"type": "ci", "section": "Continuous Integration", "hidden": true}
]
}
}
],
[
"@semantic-release/changelog",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "chore", "scope": "release", "release": false },
{ "type": "ci", "release": false },
{ "type": "style", "release": false },
{ "type": "test", "release": false },
{ "type": "docs", "release": false }
],
"presetConfig": {
"types": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "perf", "section": "Performance Improvements"},
{"type": "revert", "section": "Reverts"},
{"type": "test", "section": "Tests", "hidden": true},
{"type": "build", "section": "Build System", "hidden": true},
{"type": "docs", "section": "Documentation", "hidden": true},
{"type": "style", "section": "Code Styles", "hidden": true},
{"type": "chore", "section": "Miscellaneous Chores", "hidden": true},
{"type": "refactor", "section": "Code Refactoring", "hidden": false},
{"type": "ci", "section": "Continuous Integration", "hidden": true}
]
}
}
],
[
"@semantic-release/exec",
{
"prepareCmd": ".github/scripts/utils/helpers/deploy/update-version.sh ${nextRelease.version} app/build.gradle.kts"
}
],
// For better control, disabled to manually handle the git commit for the version bump and changelog update.
// For more details, see the .github/scripts/utils/helpers/deploy/commit-version-bump.sh script.
//
// If you prefer semantic-release to automatically handle the version bump and changelog update commit,
// re-enable this block by uncommenting it and customizing the commit message as needed.
//
// Example configuration for semantic-release to create a commit for the version bump and changelog:
//[
// "@semantic-release/git",
// {
// "assets": [
// "app/build.gradle.kts",
// "CHANGELOG.md"
// ],
// "message": "chore(release): promote release v${nextRelease.version} \n\n${nextRelease.notes}"
// }
//,
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"markdownReleaseNotes": true,
"packageName": process.env.SEMANTIC_RELEASE_PACKAGE
}
],
[
"@semantic-release/github",
{
"assets": ["CHANGELOG.md"],
"successComment": false,
"failComment": false,
"failTitle": false,
"labels": false
}
]
]
};