Skip to content

Commit

Permalink
Build storybooks in parallel in same action
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Jun 6, 2024
1 parent bee0e5e commit d1e8be2
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Visual Regression Tests - Designsystem"
name: "Visual Regression Tests"

on:
pull_request:
Expand All @@ -17,8 +17,20 @@ jobs:
- name: Kirby setup
uses: ./.github/actions/kirby-setup

- name: Publish to Chromatic
- name: Build storybook
run: npx nx run-many -t build-storybook

- name: Publish Designsystem to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.DESIGNSYSTEM_CHROMATIC_PROJECT_TOKEN }}
workingDir: libs/designsystem
storybookBuildDir: dist/storybook/designsystem

- name: Publish Extensions to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.EXTENSIONS_CHROMATIC_PROJECT_TOKEN }}
workingDir: libs/extensions/angular
storybookBuildDir: dist/storybook/extensions/angular

0 comments on commit d1e8be2

Please sign in to comment.