ci(#10336): use exitOnceUploaded

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-03 13:50:22 +09:00
parent 8d90e88e16
commit 2acb655c0f
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99

View File

@ -40,11 +40,12 @@ jobs:
id: chromatic id: chromatic
uses: chromaui/action@v1 uses: chromaui/action@v1
with: with:
exitOnceUploaded: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: storybook-static storybookBuildDir: storybook-static
workingDir: packages/frontend workingDir: packages/frontend
- name: Compare on Chromatic - name: Compare on Chromatic
if: github.event_name == 'pull_request_target' if: github.event_name == 'pull_request'
run: pnpm --filter frontend chromatic --exit-once-uploaded --patch-build ${{ github.head_ref }}...${{ github.base_ref }} run: pnpm --filter frontend chromatic --exit-once-uploaded --patch-build ${{ github.head_ref }}...${{ github.base_ref }}
env: env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}