forked from onikienko/mv3-parcel-webext-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.release-it.js
27 lines (27 loc) · 867 Bytes
/
.release-it.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
module.exports = {
'git': {
'requireCleanWorkingDir': true,
'commitMessage': 'v${version}',
'pushRepo': 'origin',
'tagName': 'v${version}',
'requireCommits': true,
},
'github': {
'release': true,
'releaseName': 'v${version}',
'tokenRef': 'GITHUB_TOKEN',
'assets': ['releases/*-v${version}.zip'],
},
'npm': {
'publish': false,
},
'hooks': {
// bump version in the manifest.json to be the same as in the package.json
'before:bump': ['dot-json src/manifest.json version "${version}"'],
'after:bump': ['npm run build'],
'after:release': [
'echo Successfully released ${name} v${version} to ${repo.repository}',
'opener https://${repo.host}/${repo.repository}/releases/tag/v${version}',
],
},
};