-
Notifications
You must be signed in to change notification settings - Fork 3
/
.release-it.js
51 lines (51 loc) · 1.44 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
'git': {
'requireCleanWorkingDir': true,
'commitMessage': 'v${version}',
'pushRepo': 'origin',
'tagName': 'v${version}',
'requireCommits': true,
},
// docs https://github.com/release-it/release-it/blob/main/docs/github-releases.md
'github': {
'release': true,
'releaseName': 'v${version}',
'tokenRef': 'GITHUB_TOKEN',
'assets': ['releases/*-v${version}.zip'],
},
'plugins': {
'@release-it/bumper': {
// bump a version in the manifest.json
'out': {
'file': 'src/manifest.json',
},
},
'@release-it/conventional-changelog': {
'infile': 'CHANGELOG.md',
'ignoreRecommendedBump': true,
'preset': {
'name': 'conventionalcommits',
'types': [
{
'type': 'feat',
'section': 'Features',
},
{
'type': 'fix',
'section': 'Bug Fixes',
},
],
},
},
},
'npm': {
'publish': false,
},
'hooks': {
'after:bump': ['npm run build'],
'after:release': [
'echo Successfully released ${name} v${version} to ${repo.repository}',
'opener ${releaseUrl}',
],
},
};