From 9d08637a29d23469de308aad003277e7c99e0e13 Mon Sep 17 00:00:00 2001 From: Matt Vickers Date: Tue, 26 Sep 2023 13:48:44 -0500 Subject: [PATCH] Remove chromatic-main as it's unnecessary --- .github/workflows/chromatic-main.yml | 25 ------------------------- .github/workflows/chromatic.yml | 8 +------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 .github/workflows/chromatic-main.yml diff --git a/.github/workflows/chromatic-main.yml b/.github/workflows/chromatic-main.yml deleted file mode 100644 index 835e0b987..000000000 --- a/.github/workflows/chromatic-main.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Chromatic (main) -on: push -jobs: - chromatic: - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' - continue-on-error: true - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 - with: - persist-credentials: false - fetch-depth: 0 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16.12.0 - cache: 'yarn' - - name: Install and Build 🔧 - run: yarn - - name: Publish to Chromatic and auto accept changes - uses: chromaui/action@v1 - with: - projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - autoAcceptChanges: true diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index ec12cd0d3..6358b9b22 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]' && github.ref != 'refs/heads/main'}} + if: ${{ github.actor != 'dependabot[bot]' }} continue-on-error: true steps: - name: Checkout 🛎️ @@ -29,9 +29,3 @@ jobs: exitZeroOnChanges: true exitOnceUploaded: true buildScriptName: build-storybook:chromatic - - name: Add Chromatic link to PR - uses: unsplash/comment-on-pr@v1.3.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - msg: "Chromatic Storybook: [${{ steps.chromatic.outputs.storybookUrl }}](${{ steps.chromatic.outputs.storybookUrl }})"