From e73c9fe417169e73c395cde1aeb841eee8add579 Mon Sep 17 00:00:00 2001 From: Samuel Gunter Date: Tue, 20 Feb 2024 17:20:28 -0600 Subject: [PATCH] fix: change Chromatic action to build current branch, not base branch (#100) --- .github/workflows/chromatic.yml | 42 ++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index ae5482b60..bbe47456e 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,26 +1,26 @@ -name: "Chromatic" +name: 'Chromatic' -on: [push, pull_request_target] +on: [push, pull_request] jobs: - chromatic: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Setup pnpm - uses: pnpm/action-setup@v3 - with: - version: 8 + chromatic: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 - - name: Install dependencies - run: pnpm install + - name: Install dependencies + run: pnpm install - - name: Publish to Chromatic - uses: chromaui/action@latest - with: - projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - exitZeroOnChanges: true - autoAcceptChanges: "main" + - name: Publish to Chromatic + uses: chromaui/action@latest + with: + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + exitZeroOnChanges: true + autoAcceptChanges: 'main'