-
Notifications
You must be signed in to change notification settings - Fork 31
/
.releaserc.js
59 lines (59 loc) · 1.51 KB
/
.releaserc.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
50
51
52
53
54
55
56
57
58
59
/**
* @type {import('semantic-release').GlobalConfig}
*/
module.exports = {
branches: [
"main",
{
name: "prerelease",
channel: "prerelease",
prerelease: true
},
],
preset: "angular",
plugins: [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ type: "feat", scope: "upgrade-major", release: "major" },
{ breaking: true, release: "minor" },
{ revert: true, release: "patch" },
{ type: "feat", release: "patch" },
{ type: "fix", release: "patch" },
{ type: "perf", release: "patch" },
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github", // Creating the release and tag on GitHub
[
// This will increase the version in the main project without publishing it
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
// This will increase the version in the dist folder of the library will publish to npm
"@semantic-release/npm",
{
"pkgRoot": "dist/design-angular-kit"
}
],
[
// Commit with the new updated files
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json",
"projects/design-angular-kit/package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} :tada: [skip ci]\n\n${nextRelease.notes}"
}
]
]
}