ADD a step in circleci to upload storybook for angular (#8477)

ADD a step in circleci to upload storybook for angular
This commit is contained in:
Norbert de Langen 2019-10-18 17:12:45 +02:00 committed by GitHub
commit a64df49e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -47,8 +47,12 @@ jobs:
- attach_workspace:
at: .
- run:
name: Run chromatic on the pre-built storybook
command: yarn chromatic
name: Run chromatic on the pre-built official example
command: yarn chromatic --storybook-build-dir="built-storybooks/official-storybook" --exit-zero-on-changes --app-code="ab7m45tp9p"
- run:
name: Run chromatic on the pre-built angular example
command: yarn chromatic --storybook-build-dir="built-storybooks/angular-cli" --exit-zero-on-changes --app-code="tl92yzsj6w"
packtracker:
<<: *defaults
steps:

View File

@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"build": "ng build",
"prebuild-storybook": "npm run storybook:prebuild && cd ../.. && yarn add node-sass -W -s && cd examples/angular-cli",
"prebuild-storybook": "npm run storybook:prebuild",
"build-storybook": "build-storybook -s src/assets",
"e2e": "ng e2e",
"ng": "ng",

View File

@ -47,7 +47,6 @@
"build-storybooks": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true ./scripts/build-storybooks.js",
"changelog": "pr-log --sloppy --cherry-pick",
"changelog:next": "pr-log --sloppy --since-prerelease",
"chromatic": "chromatic --storybook-build-dir=\"built-storybooks/official-storybook\" --exit-zero-on-changes --app-code=\"ab7m45tp9p\"",
"coverage": "codecov",
"danger": "danger",
"dev": "concurrently --kill-others \"yarn dev:tsc\" \"yarn dev:babel\"",