From e0421526818eac9e299b99d5f964f7b045700a4f Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Wed, 30 Aug 2023 10:55:28 -0500 Subject: [PATCH] ci: update chromatic build (#4050) --- .github/workflows/publish-storybook.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-storybook.yml b/.github/workflows/publish-storybook.yml index de54b52f25..235d29b183 100644 --- a/.github/workflows/publish-storybook.yml +++ b/.github/workflows/publish-storybook.yml @@ -32,12 +32,18 @@ jobs: electron-install: false - name: Build Plugins run: yarn run build:plugins - - name: Publish to Chromatic - uses: chromaui/action@v1 + - uses: chromaui/action-next@v1 with: - workingDir: apps/storybook - buildScriptName: build - projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - zip: true + exitOnceUploaded: true + onlyChanged: false + diagnostics: true env: + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} NODE_OPTIONS: ${{ env.NODE_OPTIONS }} + - uses: actions/upload-artifact@v2 + if: always() + with: + name: chromatic-build-artifacts-${{ github.run_id }} + path: | + chromatic-diagnostics.json + **/build-storybook.log