diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml new file mode 100644 index 000000000..fb607e04a --- /dev/null +++ b/.github/workflows/chromatic.yaml @@ -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 \ No newline at end of file