Skip to content

Commit

Permalink
chore(action): chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechan99 committed Jan 24, 2024
1 parent 1a94611 commit 720e705
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Chromatic"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: pnpm install

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"build-storybook": "storybook build",
"prepare": "husky install",
"test": "vitest",
"testOnce": "vitest run --run --coverage",
"chromatic": "npx chromatic --project-token=chpt_2a9aa9d668c2647"
"testOnce": "vitest run --run --coverage"
},
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down

0 comments on commit 720e705

Please sign in to comment.