Skip to content

Commit

Permalink
Automate with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Jun 25, 2024
1 parent d5ae622 commit 1655988
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Chromatic'

on:
push:
branches: [main]
pull_request:
branches: [main, 'codefreeze-*']

jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- 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
exitOnceUploaded: true
onlyChanged: true
skip: 'dependabot/**'
9 changes: 9 additions & 0 deletions chromatic.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"autoAcceptChanges": "main",
"buildScriptName": "stories:build",
"exitOnceUploaded": true,
"exitZeroOnChanges": true,
"externals": ["public/**"],
"onlyChanged": true,
"skip": "dependabot/**"
}

0 comments on commit 1655988

Please sign in to comment.