ci: use build dir

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-06 23:20:13 +09:00
parent 529ab126ed
commit c7143e6873
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99

View file

@ -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