-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.config.js
49 lines (47 loc) · 1.37 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
37
38
39
40
41
42
43
44
45
46
47
48
49
module.exports = {
branches: ["main"],
plugins: [
// Analyse commits.
// https://github.com/semantic-release/commit-analyzer/#rules-definition
[
"@semantic-release/commit-analyzer",
{
preset: "angular",
releaseRules: [
{ type: "chore", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "revert", release: "patch" },
],
},
],
// Create release notes.
"@semantic-release/release-notes-generator",
// Add the release notes to a change log.
[
"@semantic-release/changelog",
{
changelogFile: "CHANGE_LOG.md",
},
],
// Bump the version number in the sonar-project.properties file.
[
"@semantic-release/exec",
{
prepareCmd:
"node ./scripts/release/change_sonarcloud_project_version.js v${nextRelease.version}",
},
],
// Commit the change log and the updated SonarCloud project version number.
[
"@semantic-release/git",
{
assets: ["CHANGE_LOG.md", "sonar-project.properties"],
// Note, this isn't a string literal, it's a Mustache-style template.
message: "build(release v${nextRelease.version}): See CHANGE_LOG.md",
},
],
// Generate the Github release.
// https://github.com/semantic-release/github
"@semantic-release/github",
],
};