-
Notifications
You must be signed in to change notification settings - Fork 12
/
release.config.js
101 lines (99 loc) · 3.69 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
const { getPackagePath } = require('./webpack/packageNaming');
const release = Object.freeze({
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/git',
'@semantic-release/github'
],
analyzeCommits: {
preset: 'angular',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'MAJOR RELEASE']
}
},
prepare: [
'@semantic-release/changelog',
{
path: '@semantic-release/exec',
cmd:
'sed -i -r \'s/"version":\\s*"[^"]+"/"version": "${nextRelease.version}"/\' package.json'
},
{
path: '@semantic-release/git',
assets: ['package.json', 'yarn.lock', 'CHANGELOG.md'],
message: 'chore: release ${nextRelease.version}\n\n${nextRelease.notes}'
}
],
publish: [
{
path: '@semantic-release/exec',
cmd:
'NODE_ENV=staging FACET=dismoi SENTRY_SEND_VERSION=true yarn run build:chromium &&' +
'NODE_ENV=proding FACET=dismoi SENTRY_SEND_VERSION=true yarn run build:chromium &&' +
'NODE_ENV=production FACET=dismoi SENTRY_SEND_VERSION=true yarn run build:chromium &&' +
'NODE_ENV=staging FACET=dismoi SENTRY_SEND_VERSION=true yarn run build:firefox &&' +
'NODE_ENV=proding FACET=dismoi SENTRY_SEND_VERSION=true yarn run build:firefox &&' +
'NODE_ENV=production FACET=dismoi SENTRY_SEND_VERSION=true yarn run build:firefox &&' +
'NODE_ENV=staging FACET=lmel SENTRY_SEND_VERSION=true yarn run build:chromium &&' +
'NODE_ENV=proding FACET=lmel SENTRY_SEND_VERSION=true yarn run build:chromium &&' +
'NODE_ENV=production FACET=lmel SENTRY_SEND_VERSION=true yarn run build:chromium &&' +
'NODE_ENV=staging FACET=lmel SENTRY_SEND_VERSION=true yarn run build:firefox &&' +
'NODE_ENV=proding FACET=lmel SENTRY_SEND_VERSION=true yarn run build:firefox &&' +
'NODE_ENV=production FACET=lmel SENTRY_SEND_VERSION=true yarn run build:firefox'
},
{
path: '@semantic-release/github',
assets: [
{
path: getPackagePath('*', 'firefox', 'staging', 'dismoi'),
label: 'Firefox Package - staging'
},
{
path: getPackagePath('*', 'firefox', 'proding', 'dismoi'),
label: 'Firefox Package - proding'
},
{
path: getPackagePath('*', 'firefox', 'production', 'dismoi'),
label: 'Firefox Package'
},
{
path: getPackagePath('*', 'chromium', 'staging', 'dismoi'),
label: 'Chromium Package - staging'
},
{
path: getPackagePath('*', 'chromium', 'proding', 'dismoi'),
label: 'Chromium Package - proding'
},
{
path: getPackagePath('*', 'chromium', 'production', 'dismoi'),
label: 'Chromium Package'
},
{
path: getPackagePath('*', 'firefox', 'staging', 'lmel'),
label: 'Le Même en Local - Firefox Package - staging'
},
{
path: getPackagePath('*', 'firefox', 'proding', 'lmel'),
label: 'Le Même en Local - Firefox Package - proding'
},
{
path: getPackagePath('*', 'firefox', 'production', 'lmel'),
label: 'Le Même en Local - Firefox Package'
},
{
path: getPackagePath('*', 'chromium', 'staging', 'lmel'),
label: 'Le Même en Local - Chromium Package - staging'
},
{
path: getPackagePath('*', 'chromium', 'proding', 'lmel'),
label: 'Le Même en Local - Chromium Package - proding'
},
{
path: getPackagePath('*', 'chromium', 'production', 'lmel'),
label: 'Le Même en Local - Chromium Package'
}
]
}
]
});
module.exports = release;