Skip to content

Commit

Permalink
Fixing issues with chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
envex committed Sep 25, 2023
1 parent 6ad17ce commit 801a941
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ jobs:
- name: Install and Build 🔧
run: yarn
- name: Publish to Chromatic
if: github.ref != 'refs/heads/main'
uses: chromaui/action@v1
id: chromatic
# Chromatic GitHub Action options
with:
token: ${{ secrets.GITHUB_TOKEN }}
onlyChanged: true
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: 'main'
exitZeroOnChanges: false
exitZeroOnChanges: true
exitOnceUploaded: true
buildScriptName: build-storybook:chromatic
- name: Add Chromatic link to PR
Expand All @@ -37,3 +36,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "Chromatic Storybook: [${{ steps.chromatic.outputs.storybookUrl }}](${{ steps.chromatic.outputs.storybookUrl }})"
- name: Publish to Chromatic and auto accept changes
if: github.ref == 'refs/heads/main'
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: true

0 comments on commit 801a941

Please sign in to comment.