Skip to content

Commit

Permalink
chore: chromatic github actions 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bytrustu committed Feb 29, 2024
1 parent 6623bb4 commit a11c7d0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/chromatic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Chromatic Deployment

on:
push:
branches:
- main
paths:
- 'src/components/**'
- 'src/shared/components/**'
- 'src/shared/styles/**'

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # 전체 Git 이력을 가져오도록 설정

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Dependencies
run: yarn install

- name: Run Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.NEXT_PAYMENTS_CHROMATIC_TOKEN }}
projectToken: ${{ secrets.NEXT_PAYMENTS_CHROMATIC_TOKEN }}
exitZeroOnChanges: true

0 comments on commit a11c7d0

Please sign in to comment.