Skip to content

Commit

Permalink
WIP automate with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Jun 20, 2024
1 parent d5ae622 commit 2b27d04
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -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/**'
10 changes: 10 additions & 0 deletions chromatic.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"projectId": "",
"autoAcceptChanges": "main",
"buildScriptName": "stories:build",
"exitOnceUploaded": true,
"exitZeroOnChanges": true,
"externals": ["public/**"],
"onlyChanged": true,
"skip": "dependabot/**"
}

0 comments on commit 2b27d04

Please sign in to comment.