Skip to content

Commit 44ed5ca

Browse files
committed
Add release script
1 parent 4647ac0 commit 44ed5ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"description": "React's PropTypes, packaged up as a standalone module.",
66
"main": "index.js",
77
"scripts": {
8-
"build": "babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js"
8+
"build": "babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js",
9+
"release": "npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)