1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Enable Storybook deploy on CI (#8009)

This commit is contained in:
Whymarrh Whitby 2020-02-08 16:26:33 -03:30 committed by GitHub
parent c0d6121cd9
commit 5b28fb3a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 18 deletions

View File

@ -16,6 +16,9 @@ workflows:
- prep-build-test:
requires:
- prep-deps
- prep-build-storybook:
requires:
- prep-deps
- prep-scss:
requires:
- prep-deps
@ -79,12 +82,12 @@ workflows:
- prep-deps
- prep-build
- all-tests-pass
# - job-publish-storybook:
# filters:
# branches:
# only: develop
# requires:
# - prep-deps
- job-publish-storybook:
filters:
branches:
only: develop
requires:
- prep-build-storybook
- coveralls-upload:
requires:
- test-unit
@ -158,6 +161,21 @@ jobs:
paths:
- dist-test
prep-build-storybook:
docker:
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Build Storybook
command: yarn storybook:build
- persist_to_workspace:
root: .
paths:
- .out
prep-scss:
docker:
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
@ -330,16 +348,22 @@ jobs:
- run:
name: Create GitHub Pull Request to sync master with develop
command: .circleci/scripts/release-create-master-pr
# job-publish-storybook:
# docker:
# - image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
# steps:
# - checkout
# - attach_workspace:
# at: .
# - run:
# name: storybook:deploy
# command: yarn storybook:deploy
job-publish-storybook:
docker:
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
steps:
- add_ssh_keys:
fingerprints:
- "5e:a3:2d:35:b6:25:b5:87:b1:41:11:0d:77:50:96:73"
- checkout
- attach_workspace:
at: .
- run:
name: storybook:deploy
command: |
git remote add storybook git@github.com:MetaMask/metamask-storybook.git
yarn storybook:deploy
test-unit:
docker:

1
.gitignore vendored
View File

@ -26,6 +26,7 @@ temp
.DS_Store
app/.DS_Store
.out/
coverage/
dist
builds/

View File

@ -31,7 +31,7 @@ module.exports = {
},
resolve: {
alias: {
'./fonts/Font_Awesome': path.resolve(__dirname, '../fonts/Font_Awesome'),
'./fonts/Font_Awesome': path.resolve(__dirname, '../app/fonts/Font_Awesome'),
},
},
}

View File

@ -51,7 +51,7 @@
"announce": "node development/announcer.js",
"storybook": "start-storybook -p 6006 -c .storybook",
"storybook:build": "build-storybook -c .storybook -o .out",
"storybook:deploy": "storybook-to-ghpages",
"storybook:deploy": "storybook-to-ghpages --existing-output-dir .out --remote storybook --branch master",
"update-changelog": "./development/auto-changelog.sh",
"generate:migration": "./development/generate-migration.sh"
},