diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml new file mode 100644 index 000000000..d2e05a8f1 --- /dev/null +++ b/.github/workflows/chromatic.yml @@ -0,0 +1,23 @@ +name: 'Chromatic' + +on: + push: + branches: [main] + pull_request: + branches: [main, 'codefreeze-*'] + +jobs: + chromatic: + name: Run Chromatic + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Checkout and Setup Node + uses: ./.github/actions/checkout-and-setup + - name: Run Chromatic + uses: chromaui/action@latest + with: + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + autoAcceptChanges: 'main' + exitZeroOnChanges: true + skip: 'dependabot/**' diff --git a/chromatic.config.json b/chromatic.config.json new file mode 100644 index 000000000..bbd3c4b78 --- /dev/null +++ b/chromatic.config.json @@ -0,0 +1,10 @@ +{ + "projectId": "", + "autoAcceptChanges": "main", + "buildScriptName": "stories:build", + "exitOnceUploaded": true, + "exitZeroOnChanges": true, + "externals": ["public/**"], + "onlyChanged": true, + "skip": "dependabot/**" +}