[REFACTOR] VoteItem 컴포넌트 리팩토링 #234
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview | |
on: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
chromatic-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Node.js 설치 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: yarn-deps-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
yarn-deps-${{ hashFiles('yarn.lock') }} | |
- name: Install dependencies | |
run: yarn | |
- name: Chromatic에 배포 | |
id: chromatic | |
uses: chromaui/action@latest | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
onlyChanged: true | |
autoAcceptChanges: true | |
# PR comment | |
- name: comment PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: '🚀storybook: ${{ steps.chromatic.outputs.storybookUrl }}' |