[Feat] 이용약관 페이지 및 개인정보 처리방침 페이지 퍼블리싱 #161
Workflow file for this run
This file contains hidden or 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: 'Chromatic' | |
| on: | |
| pull_request: | |
| jobs: | |
| chromatic: | |
| name: Run Chromatic | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: cache dependencies | |
| id: cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-storybook | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Publish to Chromatic | |
| id: chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| - name: comment on PR | |
| uses: thollander/actions-comment-pull-request@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| message: '🚀 Storybook이 배포 됐어요! 확인하러 가기 => ${{ steps.chromatic.outputs.storybookUrl }}' |