Skip to content

Commit 34b132d

Browse files
committed
update the publish and version scripts
1 parent 88399fd commit 34b132d

File tree

2 files changed

+576
-4
lines changed

2 files changed

+576
-4
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"build": "rollup src/index.js --format cjs -c --output dist/bundle.js && rollup test/index.js -c -f umd --output test/bundle.js",
9-
"prepublish": "npm run build"
9+
"prepublish": "npm run build",
10+
"postversion": "git add package.json && git commit -m \"chore(package): update version\"",
11+
"postpublish": "gh-release"
1012
},
1113
"repository": {
1214
"type": "git",
@@ -31,6 +33,7 @@
3133
"devDependencies": {
3234
"babel": "^6.5.2",
3335
"babel-preset-es2015-rollup": "^1.2.0",
36+
"gh-release": "^2.1.0",
3437
"rollup": "^0.36.3",
3538
"rollup-plugin-babel": "^2.6.0",
3639
"rollup-plugin-commonjs": "^5.0.5",

0 commit comments

Comments
 (0)