diff --git a/CNAME b/CNAME new file mode 100644 index 000000000000..1130868dcf2d --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +storybooks.js.org diff --git a/package.json b/package.json index 90aa1e74b439..7add781dc00d 100644 --- a/package.json +++ b/package.json @@ -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" } }