From 9a6611124b9849eb93723a0ed47f2e7155037caa Mon Sep 17 00:00:00 2001 From: Arnaud CETOUTE Date: Thu, 8 Aug 2019 18:38:35 +0200 Subject: [PATCH] chore(deployment): add storybook-deployer --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b00380..227d08b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,10 @@ "size": "npm run build && $(npm bin)/size-limit", "clear:dist": "rm -rf dist", "test": "$(npm bin)/jest", - "lint": "$(npm bin)/eslint src" + "lint": "$(npm bin)/eslint src", + "deploy-storybook": "storybook-to-ghpages", + "prepublishOnly": "npm run lint && npm run test && npm run build && npm run size", + "postpublish": "npm run deploy-storybook" }, "repository": { "type": "git", @@ -46,6 +49,7 @@ "@babel/preset-env": "7.5.5", "@babel/preset-react": "7.0.0", "@storybook/react": "5.1.10", + "@storybook/storybook-deployer": "2.8.1", "autoprefixer": "9.6.1", "babel-eslint": "10.0.2", "babel-loader": "8.0.6",