Skip to content

Commit

Permalink
Run chromatic on merge to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed May 30, 2024
1 parent f5a515c commit 9a9cf2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ name: "Visual Regression Tests - Chromatic"
on:
pull_request:
types: [labeled, synchronize]
push:
branches:
- develop

jobs:
chromatic:
if: ${{ github.event.label.name == 'chromatic' || contains(github.event.pull_request.labels.*.name, 'chromatic') }}
if: ${{ github.event.label.name == 'chromatic' || contains(github.event.pull_request.labels.*.name, 'chromatic') || github.event_name == 'push'}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -21,3 +24,4 @@ jobs:
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: "develop" # https://www.chromatic.com/docs/github-actions/#github-squashrebase-merge-and-the-main-branch

0 comments on commit 9a9cf2b

Please sign in to comment.