From 96e60bfe740535d1f80a508c1ea6bd0e88d97467 Mon Sep 17 00:00:00 2001 From: Rebecca Mullin Date: Wed, 19 Sep 2018 12:31:18 -0400 Subject: [PATCH] Storybook gh-pages / adding travis script for this (#6269) * updating travis script * removing dev/null per comment * storybook config override-wip * removing override storybook config * updating travis * moving deploy script to stage ,removing if ck * adding lang info * adding node v * testing * reverting last change * adding condition, dev/null back * overriding deployer message * updating per comment --- .travis.yml | 6 ++++++ package.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1e1b4bb720..61bfd20229 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,3 +81,9 @@ jobs: - stage: <<: *tox env: TOXENV=dennis-lint + - stage: Storybook deployment + if: branch = master + language: node_js + node_js: '8' + script: echo "Deploying to GitHub Pages..." + after_success: yarn storybook-deploy --ci > /dev/null 2>&1 diff --git a/package.json b/package.json index 6fe70bc9dc..ad05c135b6 100644 --- a/package.json +++ b/package.json @@ -352,6 +352,9 @@ "webpack-hot-middleware": "^2.18.0", "webpack-subresource-integrity": "^1.0.0-rc.1" }, + "storybook-deployer": { + "commitMessage": "[skip ci] Deploy Storybook to Github Pages" + }, "bundlesize": [ { "path": "./dist/@(amo|disco)-!(i18n-)*.js",