This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.release-it.js
63 lines (61 loc) · 1.89 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
52
53
54
55
56
57
58
59
60
61
62
63
/* eslint-disable no-template-curly-in-string */
const conventionalCommitTypes = [
// MINOR
{ type: 'feat', release: 'minor', section: 'Features' },
{ type: 'feature', release: 'minor', section: 'Features' },
// PATCH
{ type: 'fix', release: 'patch', section: 'Fixes' },
{ type: 'refactor', release: 'patch', section: 'Fixes' },
{ type: 'chore', release: 'patch', section: 'Fixes' },
{ type: 'ci', release: 'patch', section: 'Fixes' },
{ type: 'test', release: 'patch', section: 'Fixes' },
{ type: 'bugfix', release: 'patch', section: 'Fixes' },
{ type: 'hotfix', release: 'patch', section: 'Fixes' },
{ type: 'perf', release: 'patch', section: 'Fixes' },
{ type: 'improvement', release: 'patch', section: 'Fixes' },
{ type: 'revert', release: 'patch', section: 'Fixes' },
{ type: 'style', release: 'patch', section: 'Fixes' },
{ type: 'docs', release: 'patch', section: 'Docs' },
// NO RELEASE
{ type: 'ci', release: false },
{ type: 'build', release: false },
{ type: 'release', release: false },
{ scope: 'no-release', release: false },
];
module.exports = {
hooks: {
'after:init': [],
'after:bump': [],
},
git: {
requireUpstream: false,
commitMessage: 'release: ${version} CHANGELOG [skip ci]',
pushArgs: ['--follow-tags', '--no-verify'],
},
github: {
release: true,
assets: [],
},
npm: false,
plugins: {
'@release-it/conventional-changelog': {
infile: 'CHANGELOG.md',
preset: {
name: 'conventionalcommits',
types: conventionalCommitTypes,
},
// not really useful until this PR is merged
// https://github.com/conventional-changelog/conventional-changelog/pull/908
// writerOpts: {
// groupBy: 'scope',
// },
},
'@release-it-plugins/workspaces': {
publish: false,
skipChecks: true,
},
'@release-it/bumper': {
out: 'VERSION',
},
},
};