diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index d995d854c..ec12cd0d3 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -3,7 +3,7 @@ on: push jobs: chromatic: runs-on: ubuntu-latest - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && github.ref != 'refs/heads/main'}} continue-on-error: true steps: - name: Checkout 🛎️ @@ -19,7 +19,6 @@ jobs: - name: Install and Build 🔧 run: yarn - name: Publish to Chromatic - if: github.ref != 'refs/heads/main' uses: chromaui/action@v1 id: chromatic with: