Skip to content

Commit

Permalink
chore: refa github action for chromatic (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Feb 2, 2023
1 parent 7a61d39 commit 86c2c1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:

# Action
- name: Publish to Chromatic
if: github.ref != 'refs/heads/main'
uses: chromaui/action@v1
with:
buildScriptName: build:storybook
Expand All @@ -41,3 +42,9 @@ jobs:
exitZeroOnChanges: true
exitOnceUploaded: true
skip: 'renovate/**'
- 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 86c2c1a

Please sign in to comment.