-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.config.js
36 lines (36 loc) · 1.39 KB
/
release.config.js
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
module.exports = {
branches: [
{ name: "main" },
{ name: "next", prerelease: "rc", channel: false },
],
// Define plugins used
plugins: [
// # Use default options for commit-analyzer
"@semantic-release/commit-analyzer",
// We need to tell semantic release how it can generate URL for commits and issues
// See: https://github.com/semantic-release/release-notes-generator/issues/119#issuecomment-614189962
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
writerOpts: {
commitsSort: ["subject", "scope"],
},
},
],
// Write changelog into CHANGELOG.md
["@semantic-release/changelog", { changelogFile: "CHANGELOG.md" }],
// # Use custom script to perform release
[
"@semantic-release/exec",
{
prepareCmd:
"python scripts/release.py prepare --version ${nextRelease.version} --branch ${branch.name}",
publishCmd:
"python scripts/release.py publish --version ${nextRelease.version} --branch ${branch.name}",
successCmd:
"python scripts/release.py success --version ${nextRelease.version} --branch ${branch.name}",
},
],
],
};