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 24bf434 commit dc696f8
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 dc696f8

Please sign in to comment.