diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 4b6e37aa9..fdb0308e0 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -2,13 +2,20 @@ name: "Chromatic" -on: push +on: + push: + paths: + - 'packages/ui-components/**' + - 'packages/shared/**' + - 'packages/blocks/framework/**' + - 'package-lock.json' jobs: chromatic: runs-on: ubuntu-latest env: CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + NODE_OPTIONS: --max-old-space-size=4096 steps: - name: Checkout code uses: actions/checkout@v6.0.1 diff --git a/.gitignore b/.gitignore index fa1a973e5..8502f527c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ node_modules /tmp /.nx /cache +/packages/ui-components/storybook-static ############################################# diff --git a/chromatic.config.json b/chromatic.config.json index bdecb2330..20fc6a5f1 100644 --- a/chromatic.config.json +++ b/chromatic.config.json @@ -1,6 +1,7 @@ { "$schema": "https://www.chromatic.com/config-file.schema.json", "projectId": "Project:6728aed37d68c35c74121f66", + "storybookBaseDir": "packages/ui-components", "zip": true, "exitZeroOnChanges": true, "exitOnceUploaded": true,