Merge pull request #2 from storybooks/setup-publish-script

Setup publish npm script
This commit is contained in:
Michael Shilman 2017-04-17 17:38:40 -07:00 committed by GitHub
commit da6bf457ab
2 changed files with 3 additions and 1 deletions

1
CNAME Normal file
View File

@ -0,0 +1 @@
storybooks.js.org

View File

@ -26,6 +26,7 @@
"build": "react-scripts build",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009",
"build-storybook": "build-storybook"
"build-storybook": "build-storybook",
"publish": "npm run build && cp ./CNAME ./build && cd build && git init . && git remote add origin $( cd .. && git remote get-url origin ) && git add . && git commit -m 'Update build' && git push -f origin master"
}
}