auto release for storybook

* deploy subdirectory of storybook-static to branch gh-pages
This commit is contained in:
Chun-MingChen
2018-01-07 01:29:13 +08:00
parent 6e4ca34626
commit cb1041b9d7
3 changed files with 12 additions and 2 deletions
+3
View File
@@ -15,3 +15,6 @@ lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# gh-pages
storybook-static
+5 -1
View File
@@ -11,7 +11,11 @@
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"storybook": "cd ./packages/react-bootstrap-table2-example && yarn storybook"
"storybook": "cd ./packages/react-bootstrap-table2-example && yarn storybook",
"gh-pages:clean": "cd ./packages/react-bootstrap-table2-example && yarn gh-pages:clean",
"gh-pages:build": "cd ./packages/react-bootstrap-table2-example && yarn gh-pages:build",
"gh-pages:deploy": "cd ./packages/react-bootstrap-table2-example && yarn gh-pages:deploy",
"gh-pages:publish": "yarn gh-pages:clean && yarn gh-pages:build && yarn gh-pages:deploy"
},
"repository": {
"type": "git",
@@ -6,7 +6,10 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
"gh-pages:clean": "rimraf ./storybook-static",
"gh-pages:build": "build-storybook",
"gh-pages:deploy": "git-directory-deploy --directory storybook-static",
"gh-pages:publish": "yarn gh-pages:clean && yarn gh-pages:build && yarn gh-pages:deploy"
},
"author": "",
"license": "ISC",