From 2a813723e88068f32ced03626897decc63a014fa Mon Sep 17 00:00:00 2001 From: Maciek Sitkowski Date: Sun, 26 Nov 2023 05:26:55 +0100 Subject: [PATCH] deploy storybook to chromatic --- .github/workflows/ci.yml | 8 +++++--- apps/docs/.storybook/main.ts | 9 --------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbf21b5..2663346 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -238,7 +238,9 @@ jobs: - name: 🏗️ Build run: pnpm build:docs - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4 + - name: 🚀 Deploy to Chromatic + uses: chromaui/action@v1 with: - folder: ./apps/docs/build + token: ${{ secrets.GITHUB_TOKEN }} + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + storybookBuildDir: ./apps/docs/build diff --git a/apps/docs/.storybook/main.ts b/apps/docs/.storybook/main.ts index 8fa854d..61d0afb 100644 --- a/apps/docs/.storybook/main.ts +++ b/apps/docs/.storybook/main.ts @@ -16,15 +16,6 @@ const config: StorybookConfig = { docs: { autodocs: 'tag', }, - - async viteFinal(config, { configType }) { - // Make sure the base path is correct when deploying to GH pages - if (configType === 'PRODUCTION') { - config.base = '/pnpm-monorepo/' - } - - return config - }, } export default config