Skip to content

fix: 스토리북 자동 배포 스크립트 수정 #2

fix: 스토리북 자동 배포 스크립트 수정

fix: 스토리북 자동 배포 스크립트 수정 #2

name: Deploy Storybook to Github Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Repository
uses: actions/checkout@v3
- name : Set up Node 18.16.0
uses: actions/setup-node@v3
with:
node-version: 18.16.0
- name: Cache node_modules
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: npm clean install
run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
- name: deploy
run: npm run deploy