-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.release-it.js
40 lines (37 loc) · 1.02 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
'use strict';
const fs = require('fs');
const commitTemplate = fs.readFileSync('commit.hbs').toString();
module.exports = {
git: {
commitMessage: 'v${version}',
tagName: 'v${version}',
},
plugins: {
'@release-it/conventional-changelog': {
writerOpts: {
commitPartial: commitTemplate,
},
infile: 'CHANGELOG.md',
preset: {
name: 'conventionalcommits',
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'chore', hidden: 'Chores' },
{ type: 'docs', section: 'Docs' },
{ type: 'style', section: 'Styles' },
{ type: 'refactor', section: 'Refactor' },
{ type: 'perf', hidden: 'true' },
{ type: 'test', section: 'Tests' },
{ type: 'build', hidden: 'true' },
{ type: 'ci', section: 'CI' },
{ type: 'revert', hidden: 'true' },
],
},
ignoreRecommendedBump: 'true',
},
},
npm: {
publish: false,
},
};