fix: 스토리북 자동 배포 스크립트 수정 #2
This file contains 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: 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 |