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",