Skip to content

Commit e23c68e

Browse files
committed
chore: add release it
1 parent 86cdc29 commit e23c68e

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ gulpfile.js
1111
.editorconfig
1212
.npmrc
1313
.prettoerrc
14+
.release-it.json

.release-it.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"hooks": {
3+
"after:init": [
4+
"t2k"
5+
],
6+
"after:bump": [
7+
"npm run build"
8+
]
9+
},
10+
"github": {
11+
"release": true
12+
}
13+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"scripts": {
1111
"build": "gulp",
12-
"test": "jest"
12+
"test": "jest",
13+
"release": "release-it"
1314
},
1415
"main": "dist/index.js",
1516
"license": "MIT",
@@ -22,7 +23,8 @@
2223
"gulp-size": "^3.0.0",
2324
"gulp-uglify": "^3.0.2",
2425
"jest": "^25.1.0",
25-
"react": "^16.12.0"
26+
"react": "^16.12.0",
27+
"release-it": "^14.2.1"
2628
},
2729
"publishConfig": {
2830
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)