-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
43 lines (42 loc) · 1.54 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
const buildContainersCmd = 'yarn gulp push-container'
module.exports = {
dryRun: false,
branches: [{ name: 'master', channel: 'master' }],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'release', release: 'patch' },
{ type: 'release', scope: 'patch', release: 'patch' },
{ type: 'release', scope: 'minor', release: 'minor' },
{ type: 'release', scope: 'major', release: 'major' },
],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/npm',
[
'@semantic-release/git',
{
// eslint-disable-next-line no-template-curly-in-string
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
'@semantic-release/github',
[
'@semantic-release/exec',
{
verifyConditionsCmd:
'echo $DOCKER_TOKEN | docker login ghcr.io --username $DOCKER_USERNAME --password-stdin',
publishCmd: buildContainersCmd,
addChannelCmd: buildContainersCmd,
},
],
],
}