-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.release-it.js
44 lines (44 loc) · 1.1 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
module.exports = {
git: {
commitMessage: 'chore(release): v${version}',
tagName: 'v${version}',
},
npm: {
publish: false,
},
github: {
release: true,
releaseName: 'v${version}',
},
plugins: {
'@release-it/conventional-changelog': {
infile: 'CHANGELOG.md',
header: '# Changelog',
preset: {
name: 'conventionalcommits',
types: [
{ type: 'feat', section: 'New Features' },
{ type: 'perf', section: 'Performance Improvements' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'chore', section: 'Internal Updates' },
{ type: 'refactor', section: 'Internal Updates' },
],
},
writerOpts: {
commitGroupsSort: (a, b) => {
const sections = [
'New Features',
'Performance Improvements',
'Bug Fixes',
'Internal Updates',
];
return sections.indexOf(a.title) - sections.indexOf(b.title);
},
commitsSort: 'header',
},
},
},
hooks: {
'after:release': 'pnpm genversion',
},
};