From a0e7a1be4d227f238c8645406b619398c1288083 Mon Sep 17 00:00:00 2001 From: Michael Edgar Date: Wed, 28 Aug 2024 16:06:39 -0400 Subject: [PATCH] storybook action updates Signed-off-by: Michael Edgar --- .github/workflows/storybook.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 85a21f7fb..6adabaff9 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -17,13 +17,12 @@ jobs: with: fetch-depth: 0 - - name: Install Dependencies - run: npm install - working-directory: ./ui - - name: Build Storybook - run: npm run build-storybook working-directory: ./ui + run: | + npm ci + npx playwright install + npm run build-storybook - name: Publish to Chromatic id: chromatic @@ -35,8 +34,7 @@ jobs: workingDir: "./ui" exitOnceUploaded: true - - name: Test the deployed Storybook + - name: Test Storybook + working-directory: ./ui run: | - npx playwright install npm run test-storybook -- --no-index-json --url ${{ steps.chromatic.outputs.storybookUrl }} - working-directory: ./ui \ No newline at end of file