Skip to content

Commit

Permalink
[FSK-42]: Fix Chromatic CI Setup (#16)
Browse files Browse the repository at this point in the history
* Fix Chromaui action version
* Make the Chromatic job run on pull requests too
* Install dependencies before deploying to chromatic
* Prevent the workflow from failing
  • Loading branch information
AmirabbasJ authored Sep 7, 2022
1 parent 7b82156 commit 95b2e71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ jobs:
chromatic:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push'}}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# NOTE: required because https://www.chromatic.com/docs/github-actions#support-for-codeactionscheckoutv2code-and-above
fetch-depth: 0

- name: Install dependencies
run: npm ci

- name: Deploy Chromatic
uses: chromaui/action@v3
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true # NOTE: Option to prevent the workflow from failing

0 comments on commit 95b2e71

Please sign in to comment.