Skip to content

kimdonggu42의 스토리북 배포 및 테스트 #691

kimdonggu42의 스토리북 배포 및 테스트

kimdonggu42의 스토리북 배포 및 테스트 #691

Workflow file for this run

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