forked from vmware-clarity/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.js
56 lines (55 loc) · 1.48 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
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
module.exports = {
branches: ['main', '+([0-9]).x', { name: 'beta', prerelease: true }],
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ breaking: true, release: 'major' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'chore', release: false },
],
},
],
'@semantic-release/release-notes-generator',
'./scripts/semantic-release-add-peer-dependency.js',
'./scripts/semantic-release-set-runtime-version.js',
'@semantic-release/github',
[
'@amanda-mitchell/semantic-release-npm-multiple',
{
registries: {
angular: {
npmPublish: true,
pkgRoot: './projects/angular/dist/lib',
},
core: {
npmPublish: true,
pkgRoot: './projects/core/dist/lib',
},
eslint: {
npmPublish: true,
pkgRoot: './projects/adoption/dist/lib',
},
react: {
npmPublish: true,
pkgRoot: './projects/react/dist/lib',
},
},
},
],
[
'semantic-release-slack-bot',
{
notifyOnSuccess: true,
markdownReleaseNotes: true,
},
],
],
};