-
Notifications
You must be signed in to change notification settings - Fork 0
/
.release-it.cjs
40 lines (38 loc) · 965 Bytes
/
.release-it.cjs
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
const fs = require('node:fs');
const path = require('node:path');
const headerPartial = fs.readFileSync(
path.resolve(__dirname, 'scripts/changelog/header.hbs'),
).toString();
module.exports = {
hooks: {
'after:bump': 'pnpm install --no-frozen-lockfile',
'after:release': 'echo Successfully released ${name} v${version} to ${repo.repository}.',
},
npm: {
publish: false,
},
git: {
requireBranch: ['main', 'next'],
commitMessage: 'chore: release v${version}',
tagName: 'v${version}',
tagAnnotation: 'Release v${version}',
requireCleanWorkingDir: false,
},
github: {
release: true,
releaseName: 'v${version}',
},
plugins: {
'@release-it/conventional-changelog': {
preset: 'angular',
infile: 'CHANGELOG.md',
header: '# Changelog',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'DEPRECATED'],
},
writerOpts: {
headerPartial,
},
},
},
};