kimdonggu42의 스토리북 배포 및 테스트 #691
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: Storybook Deployment and Visual Testing | |
| run-name: ${{ github.actor }}의 스토리북 배포 및 테스트 | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| jobs: | |
| storybook: | |
| runs-on: ubuntu-22.04 | |
| defaults: | |
| run: | |
| working-directory: packages/jds | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache node_modules | |
| id: cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-storybook | |
| - name: Install dependencies | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Publish to Chromatic | |
| uses: chromaui/action@latest | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_TOKEN }} | |
| workingDir: packages/jds |