Repository navigation
Expand file tree
/
Copy pathrelease.config.mjs
More file actions
44 lines (44 loc) · 1.53 KB
/
Copy pathrelease.config.mjs
File metadata and controls
44 lines (44 loc) · 1.53 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
export default {
branches: ["main"],
plugins: [
[
"@semantic-release/commit-analyzer",
{
preset: "conventionalcommits",
presetConfig: {},
releaseRules: [
// A version PR records the selected version without selecting a new
// release itself. Earlier commits still determine the release type.
{ type: "release", release: false },
// Pre-1.0 policy — see docs/maintainers.md "Releasing", which owns this table.
// Restore "major" here when cutting 1.0.0.
{ breaking: true, release: "minor" },
{ type: "feat", release: "minor" },
{ type: "fix", release: "patch" },
{ type: "perf", release: "patch" },
{ type: "docs", release: "patch" },
{ type: "style", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "test", release: "patch" },
{ type: "build", release: "patch" },
{ type: "chore", release: "patch" },
{ type: "ci", release: "patch" },
{ type: "revert", release: "patch" },
],
},
],
[
"@semantic-release/release-notes-generator",
{ preset: "conventionalcommits", presetConfig: {} },
],
...(process.env.DIALCACHE_RELEASE_PLAN_ONLY === "true"
? []
: [
["@semantic-release/npm", { pkgRoot: "typescript" }],
[
"@semantic-release/github",
{ successCommentCondition: false, failCommentCondition: false },
],
]),
],
};