-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.release-it.ts
52 lines (47 loc) · 1.18 KB
/
.release-it.ts
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
import type { Config } from 'release-it';
const template = `
{{> header}}
{{#each noteGroups}}
### ⚠️ {{title}}
{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}
{{#each commitGroups}}
### {{title}}
{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}
**Full Changelog**: [{{previousTag}}...{{currentTag}}]({{@root.host}}/{{#if @root.owner}}{{@root.owner}}/{{/if}}{{@root.repository}}/compare/{{previousTag}}...{{currentTag}})
`;
export default {
git: {
commitMessage: 'chore: release v${version}',
requireCleanWorkingDir: false,
},
github: {
release: true,
releaseName: 'v${version}',
},
npm: {
publish: false,
},
plugins: {
'@release-it/conventional-changelog': {
writerOpts: {
headerPartial: "## What's Changed\n",
mainTemplate: template,
},
preset: {
name: 'conventionalcommits',
types: [
{ type: 'feat', section: '🚀 Features' },
{ type: 'fix', section: '👾 Bug Fixes' },
{ type: 'chore', section: '⚙️ Chore' },
{ type: 'docs', section: '⚙️ Chore' },
],
},
},
},
} satisfies Config;