-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.releaserc.js
56 lines (51 loc) · 1.85 KB
/
.releaserc.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
module.exports = {
branches: ['main'],
ci: true,
dryRun: false,
plugins: [
// https://github.com/semantic-release/commit-analyzer/
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
// https://github.com/semantic-release/release-notes-generator
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'chore', section: 'Chores', hidden: false },
{ type: 'docs', section: 'Documentation', hidden: false },
{ type: 'style', section: 'Styles', hidden: false },
{ type: 'refactor', section: 'Refactors', hidden: false },
{ type: 'perf', section: 'Performance', hidden: false },
{ type: 'test', section: 'Tests', hidden: false },
],
},
},
],
// https://github.com/semantic-release/changelog
// Must be called before npm and git plugins
// Uses the result of the release-notes-generator to generate the CHANGELOG.md.
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
changelogTitle:
'# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.',
},
],
// https://github.com/semantic-release/npm
'@semantic-release/npm',
// https://github.com/semantic-release/git
[
'@semantic-release/git',
{
message: 'chore(release): v<%= nextRelease.version %>',
assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'],
},
],
// https://github.com/semantic-release/github
'@semantic-release/github',
],
};