forked from bradennapier/eslint-plus-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.config.js
47 lines (46 loc) · 994 Bytes
/
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
43
44
45
46
47
module.exports = {
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
},
],
[
'@google/semantic-release-replace-plugin',
{
replacements: [
{
files: ['README.md'],
from: '@__VERSION__',
// eslint-disable-next-line no-template-curly-in-string
to: '@${nextRelease.gitTag}',
countMatches: true,
},
],
},
],
[
// updates the package.json version without publishing to npm
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
// commits the changed files to git
'@semantic-release/git',
{
assets: ['package.json', 'README.md'],
},
],
// creates the github release
'@semantic-release/github',
],
};