Skip to content

Commit

Permalink
ci: Setup Chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
amattu2 committed May 13, 2024
1 parent 99202c9 commit f7f94a0
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Storybook Publish'

on:
# TODO: Remove the push event before merging this PR
push:
branches:
- storybook
workflow_dispatch:
pull_request:
branches: "*"
paths:
- "*.stories.*"

jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: 'npm'
- run: npm install
- uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"buffer": "^6.0.3",
"chromatic": "^11.3.2",
"eslint": "^8.40.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
Expand Down

0 comments on commit f7f94a0

Please sign in to comment.