Skip to content

API 모듈 추상화 (issue #20) #10

API 모듈 추상화 (issue #20)

API 모듈 추상화 (issue #20) #10

name: "Chromatic"
on:
pull_request:
branches: [main]
jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: front/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/front/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
working-directory: front
- name: Build Storybook
run: npm run build-storybook
working-directory: front
- name: Run Chromatic
run: npm run chromatic
working-directory: front
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}