-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
release.config.js
executable file
·106 lines (104 loc) · 2.91 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
const exclude = process.env.EXCLUDE ? `--exclude='${process.env.EXCLUDE}'` : ''
const config = {
dryRun: false,
branches: ['main', 'next'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
releaseRules: [
{
breaking: true,
release: 'major',
},
{
type: 'feat',
release: 'minor',
},
{
type: 'fix',
release: 'patch',
},
{
type: 'docs',
scope: 'README',
release: 'patch',
},
{
type: 'chore',
release: 'patch',
},
],
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
},
],
[
'@semantic-release/release-notes-generator',
{
presetConfig: {
types: [
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'docs', section: 'Miscellaneous Chores', hidden: false },
{ type: 'chore', section: 'Miscellaneous Chores', hidden: false },
],
},
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
},
],
[
'@andrew-codes/playnite-plugin-installer-manifest',
{
manifestFilePath: 'apps/PlayniteWebPlugin/src/manifest.yaml',
extensionFilePath: 'apps/PlayniteWebPlugin/src/extension.yaml',
requiredApiVersion: '6.11.0',
presetConfig: {
types: [
{ type: 'feat', section: 'Features', hidden: false },
{ type: 'fix', section: 'Bug Fixes', hidden: false },
{ type: 'docs', section: 'Miscellaneous Chores', hidden: false },
{ type: 'chore', section: 'Miscellaneous Chores', hidden: false },
],
},
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
},
},
],
[
'@semantic-release/exec',
{
verifyReleaseCmd: `yarn cross-env VERSION='\${nextRelease.version}' yarn nx run-many --target=version ${exclude}`,
publishCmd: `yarn cross-env VERSION='\${nextRelease.version}' PUBLISH='true' yarn nx run-many --target=publish ${exclude}`,
},
],
[
'@semantic-release/github',
{
assets: [
{
path: '_packaged/**/*.*',
label: 'Playnite Web Plugin',
},
],
},
],
[
'@semantic-release/git',
{
assets: [
'apps/PlayniteWebPlugin/src/manifest.yaml',
'apps/PlayniteWebPlugin/src/extension.yaml',
'hass-playnite-web/config.json'
],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
}
module.exports = config