forked from vmware-clarity/ng-clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.js
51 lines (50 loc) · 1.38 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
/*
* Copyright (c) 2016-2024 Broadcom. All Rights Reserved.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
* 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 }, { name: 'next', prerelease: true }],
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{ breaking: true, release: 'major' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'chore', release: false },
],
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
},
},
],
'@semantic-release/release-notes-generator',
'./scripts/semantic-release-add-peer-dependency.js',
'@semantic-release/github',
[
'@amanda-mitchell/semantic-release-npm-multiple',
{
registries: {
angular: {
npmPublish: true,
pkgRoot: './dist/clr-angular',
},
ui: {
npmPublish: true,
pkgRoot: './dist/clr-ui',
},
},
},
],
[
'semantic-release-slack-bot',
{
notifyOnSuccess: true,
markdownReleaseNotes: true,
},
],
],
};