Skip to content

Commit

Permalink
chore: chromatic ci 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoribogo committed Dec 28, 2023
1 parent d3aa935 commit f41210f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

on:
push:
branches: ["main"]
branches: ['main']

permissions:
contents: read
Expand All @@ -26,3 +26,20 @@ jobs:
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Deploy-Storybook:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v4
- with:
fetch-depth: 0

- name: Install dependencies
- run: npm ci

- name: Publish to Chromatic
- uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
onlyChanged: true

0 comments on commit f41210f

Please sign in to comment.