From 6a96033fe6ef6268230291984b4041062933bb28 Mon Sep 17 00:00:00 2001 From: PerIngeVaaje <60141320+PerIngeVaaje@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:23:56 +0100 Subject: [PATCH] PXWEB2-9 publish Storybook on Chromatic PXWEB2-9 publish Storybook on Chromatic on pull request to main on pxweb2-ui path --- .github/workflows/chromatic.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 984082c3..bf8c87a4 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -3,7 +3,12 @@ name: "Chromatic" -on: push +on: + pull_request: + branches: + - main + paths: + - 'libs/pxweb2-ui/**' jobs: chromatic: @@ -15,13 +20,9 @@ jobs: fetch-depth: 0 - name: Install dependencies - # ⚠️ Pick one of these, matching the package manager for your project run: npm ci - # run: pnpm install - # run: yarn install --immutable --immutable-cache --check-cache - name: Publish to Chromatic uses: chromaui/action@latest with: - # ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}