Skip to content

Commit

Permalink
🐛 스토리북 배포 재설정
Browse files Browse the repository at this point in the history
  • Loading branch information
oaoong committed Oct 30, 2023
1 parent 23f4f2e commit 050d3e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: 'Chromatic Deployment'

name: 'Chromatic'
on:
# 원하는 브랜치 명으로 바꿔주시면 됩니다.
push:
branches: ['develop']

jobs:
test:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: yarn
- uses: chromaui/action@v1
- name: Install dependencies
run: |
npm install -g pnpm
- name: Install Dependency
run: pnpm install

- name: Publish to Chromatic
uses: chromaui/action@v1

with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "vitest --run",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"chromatic": "npx chromatic --project-token=chpt_00fe989402301dc"
"chromatic": "bash ./scripts/chromatic_publish.sh"
},
"dependencies": {
"@radix-ui/react-dialog": "^1.0.5",
Expand Down

0 comments on commit 050d3e4

Please sign in to comment.