Skip to content

Commit 3a8f68d

Browse files
committed
Add release scripts
1 parent cffae35 commit 3a8f68d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"sideEffects": false,
2121
"scripts": {
2222
"clean": "rm -rf ./dist",
23-
"build": "yarn clean && rollup -c rollup.config.mjs"
23+
"build": "npm run clean && rollup -c rollup.config.mjs",
24+
"release:patch": "npm run build && npm version patch && yarn publish && git push",
25+
"release:minor": "npm run build && npm version minor && yarn publish && git push",
26+
"release:major": "npm run build && npm version major && yarn publish && git push"
2427
},
2528
"keywords": [
2629
"react-component",

0 commit comments

Comments
 (0)