-
Notifications
You must be signed in to change notification settings - Fork 180
/
.releaserc.cjs
38 lines (35 loc) · 1.21 KB
/
.releaserc.cjs
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
const commitTypes = [
{ type: "rem", section: "Removals" },
{ type: "new", section: "New Packages" },
{ type: "update", section: "Updates" },
{ type: "feat", section: "Features" },
{ type: "fix", section: "Bug Fixes" },
{ type: "test", section: "Testing" },
{ type: "ci", section: "Continuous Integration" },
{ type: "revert", section: "Reversions" },
{ type: "docs", section: "Documentation" },
{ type: "perf", section: "Performance Improvements" },
{ type: "refactor", section: "Code Refactoring" },
{ type: "style", section: "Style Changes" },
{ type: "chore", section: "Maintenance" },
];
// Default rules can be found in `github.com/semantic-release/commit-analyzer/lib/default-release-rules.js`
// that cover feat, fix, perf and breaking
const releaseRules = [
{ type: "rem", release: "major" },
{ type: "new", release: "minor" },
{ type: "update", release: "patch" },
];
const config = {
branches: [{ name: "ma(in|ster)", channel: "latest" }],
plugins: [
["@semantic-release/commit-analyzer", { releaseRules: releaseRules }],
"@semantic-release/release-notes-generator",
"@semantic-release/github",
],
preset: "conventionalcommits",
presetConfig: {
types: commitTypes,
},
};
module.exports = config;