Skip to content

Commit

Permalink
chore: configure chromatic (#2658)
Browse files Browse the repository at this point in the history
## What's the purpose of this pull request?

- Configure chromatic action for storybook

Depends on: #2657
  • Loading branch information
matheusps authored Jan 31, 2025
1 parent 2239227 commit 1ecd7a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ jobs:
- name: Test
run: yarn test

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/storybook
buildScriptName: build
onlyChanged: true
exitOnceUploaded: true
exitZeroOnChanges: true

- name: Pack packages
run: |
mkdir -p packed-packages
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ jobs:
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/storybook
buildScriptName: build
onlyChanged: true
exitOnceUploaded: true
exitZeroOnChanges: true

0 comments on commit 1ecd7a7

Please sign in to comment.