-
-
Notifications
You must be signed in to change notification settings - Fork 835
Expand file tree
/
Copy pathrelease.config.js
More file actions
40 lines (34 loc) 路 1.03 KB
/
Copy pathrelease.config.js
File metadata and controls
40 lines (34 loc) 路 1.03 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
// RELEASE_TYPE forces the bump instead of deriving it from the commits.
const forced = process.env.RELEASE_TYPE;
const forcedBump = forced && forced !== "auto" ? forced : null;
export default {
branches: ["main"],
plugins: [
forcedBump
? { analyzeCommits: () => forcedBump }
: [
"@semantic-release/commit-analyzer",
{ preset: "conventionalcommits" },
],
"./scripts/release/notes.mjs",
[
"@semantic-release/exec",
{
verifyReleaseCmd:
"node scripts/release/emit-version.mjs ${nextRelease.version}",
prepareCmd:
"node scripts/release/apply-version.mjs ${nextRelease.version}",
},
],
["@semantic-release/changelog", { changelogFile: "CHANGELOG.md" }],
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package.json", "charts/kaneo/Chart.yaml"],
message:
"chore(release): v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
},
],
"@semantic-release/github",
],
};