From de236926398be294d03ecca2349b37c20fc50506 Mon Sep 17 00:00:00 2001 From: samshara Date: Tue, 18 Jun 2024 15:54:25 +0545 Subject: [PATCH] fix: chromatic deployment using actions --- .github/workflows/chromatic.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 75bd96cfd..19ff1b02b 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,21 +1,23 @@ name: 'Chromatic Publish' -# NOTE: we should change this once project/playwright is merged to develop on: push: branches: - project/storybook jobs: - test: + chromatic: runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/go-ui-storybook steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: 'yarn' - run: yarn #👇 Adds Chromatic as a step in the workflow @@ -25,3 +27,4 @@ jobs: #👇 Chromatic projectToken projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }} + working-directory: packages/go-ui-storybook