From c7143e6873c615eb75e2266a7483f54aaefa7489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Thu, 6 Apr 2023 23:20:13 +0900 Subject: [PATCH] ci: use build dir --- .github/workflows/storybook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 94a8195be4..7fc51b06fc 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -37,12 +37,12 @@ jobs: run: pnpm --filter frontend build-storybook - name: Publish to Chromatic if: github.ref == 'refs/heads/master' - run: pnpm --filter frontend chromatic --exit-once-uploaded + run: pnpm --filter frontend chromatic --exit-once-uploaded -d packages/frontend/storybook-static env: CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - name: Publish to Chromatic if: github.ref != 'refs/heads/master' - run: pnpm --filter frontend chromatic --exit-once-uploaded $(node packages/frontend/.storybook/changes.js $(git diff-tree --no-commit-id --name-only -r HEAD | xargs)) + run: pnpm --filter frontend chromatic --exit-once-uploaded -d packages/frontend/storybook-static $(node packages/frontend/.storybook/changes.js $(git diff-tree --no-commit-id --name-only -r HEAD | xargs)) env: CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - name: Upload Artifacts