Skip to content

Commit

Permalink
ci: chromaui actions 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
seongminn committed Jan 30, 2024
1 parent c4f2c3f commit 07f9a1b
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/chromatic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- build/chromatic

jobs:
chromatic:
Expand Down Expand Up @@ -43,20 +44,20 @@ jobs:
run: pnpm install -no-frozen-lockfile
working-directory: docs/storybook

- name: Environment Variables
run: |
echo "CHROMATIC_PROJECT_TOKEN=${{ secrets.CHROMATIC_PROJECT_TOKEN }}" >> .env
cat .env
working-directory: docs/storybook
# - name: Environment Variables
# run: |
# echo "CHROMATIC_PROJECT_TOKEN=${{ secrets.CHROMATIC_PROJECT_TOKEN }}" >> .env
# cat .env
# working-directory: docs/storybook

- name: Deploy Storybook
run: pnpm run deploy:storybook

# - name: Publish to Chromatic
# uses: chromaui/action@latest
# with:
# projectToken: ${{ secrets.CHROMATIC_TOKEN }}
# workingDir: docs/storybook
# autoAcceptChanges: 'main'
# buildScriptName: 'build'
# onlyChanged: true
# - name: Deploy Storybook
# run: pnpm run deploy:storybook

- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: docs/storybook
autoAcceptChanges: 'main'
buildScriptName: 'build'
onlyChanged: true

0 comments on commit 07f9a1b

Please sign in to comment.