Skip to content

Commit

Permalink
chore(chromatic): Trying the chromatic github action
Browse files Browse the repository at this point in the history
  • Loading branch information
planctus committed Oct 4, 2024
1 parent ad68feb commit 6a0f56d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ jobs:
run: yarn install --frozen-lockfile
- name: Copy static assets
run: |
mkdir -p public
cp -r src/presets/ec/dist public/
cp -r src/presets/reset/dist public/
cp -r src/presets/rtl/dist public/
cp -r src/playground/ec/public/* public/
mkdir -p chromatic-storybook-ec
cp -r src/presets/ec/dist chromatic-storybook-ec
cp -r src/presets/reset/dist chromatic-storybook-ec
cp -r src/presets/rtl/dist chromatic-storybook-ec
cp -r src/playground/ec/public/* chromatic-storybook-ec
- name: Run Chromatic for EC
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build
workingDir: src/playground/ec
outputDir: chromatic-storybook-ec
chromatic-eu:
runs-on: ubuntu-latest
steps:
Expand All @@ -46,14 +47,15 @@ jobs:
run: yarn install --frozen-lockfile
- name: Copy static assets
run: |
mkdir -p public
cp -r srcpresets/eu/dist public/
cp -r src/presets/reset/dist public/
cp -r src/presets/rtl/dist public/
cp -r src/playground/eu/public/* public/
mkdir -p chromatic-storybook-eu
cp -r src/presets/eu/dist chromatic-storybook-eu
cp -r src/presets/reset/dist chromatic-storybook-eu
cp -r src/presets/rtl/dist chromatic-storybook-eu
cp -r src/playground/eu/public/* chromatic-storybook-eu
- name: Run Chromatic for EU
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build
workingDir: src/playground/eu
outputDir: chromatic-storybook-eu

0 comments on commit 6a0f56d

Please sign in to comment.