forked from jpbaking/error-extender
-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.config.js
42 lines (38 loc) · 1.08 KB
/
release.config.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
const preset = 'conventionalcommits';
/**
* semantic-release plugin to analyze commits with conventional-changelog
* https://github.com/semantic-release/commit-analyzer
*/
const commitAnalyzerConfig = {
preset,
};
/**
* semantic-release plugin to generate changelog content with conventional-changelog
* https://github.com/semantic-release/release-notes-generator
*/
const releaseNotesGeneratorConfig = {
preset,
};
/**
* semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues.
* https://github.com/semantic-release/github
*/
const githubConfig = {
successComment: false,
failComment: false,
labels: false,
releasedLabels: false,
};
/**
* @type {import('semantic-release').GlobalConfig}
*/
module.exports = {
branches: ['master'],
tagFormat: 'v${version}',
plugins: [
['@semantic-release/commit-analyzer', commitAnalyzerConfig],
['@semantic-release/release-notes-generator', releaseNotesGeneratorConfig],
['@semantic-release/npm'],
['@semantic-release/github', githubConfig],
],
};