Skip to content

Commit fb375e8

Browse files
Move release-it config to separate file
1 parent 6575b62 commit fb375e8

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ module.exports = {
3030
{
3131
files: [
3232
'.eslintrc.js',
33+
'.prettierrc.js',
34+
'.release-it.js',
3335
'babel.config.js',
3436
'jest.config.js',
3537
'rollup.config.js',

.release-it.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
'use strict';
2+
3+
module.exports = {
4+
hooks: {
5+
'after:bump': 'yarn build'
6+
},
7+
plugins: {
8+
'release-it-lerna-changelog': {
9+
infile: 'CHANGELOG.md',
10+
launchEditor: true
11+
}
12+
},
13+
git: {
14+
tagName: 'v${version}'
15+
},
16+
github: {
17+
release: true,
18+
tokenRef: 'GITHUB_AUTH'
19+
},
20+
npm: {
21+
publish: true
22+
}
23+
};

package.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -123,26 +123,5 @@
123123
"maintainers": [
124124
"Robert Wagner <rwwagner90@gmail.com>",
125125
"Chuck Carpenter <chuck@shipshape.io>"
126-
],
127-
"release-it": {
128-
"hooks": {
129-
"after:bump": "yarn build"
130-
},
131-
"plugins": {
132-
"release-it-lerna-changelog": {
133-
"infile": "CHANGELOG.md",
134-
"launchEditor": true
135-
}
136-
},
137-
"git": {
138-
"tagName": "v${version}"
139-
},
140-
"github": {
141-
"release": true,
142-
"tokenRef": "GITHUB_AUTH"
143-
},
144-
"npm": {
145-
"publish": true
146-
}
147-
}
126+
]
148127
}

0 commit comments

Comments
 (0)