fix: cjs import문제 esModuleInterop을 제거하여 해결 #19
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
# Workflow name | |
name: 🚀 Storybook 배포 | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ✅ 코드 체크 아웃 | |
uses: actions/checkout@v3 | |
- name: ✅ 노드 세팅 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- name: 🔨 빌드 | |
run: | | |
npm ci | |
npm run build-storybook | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
path: storybook-static | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.build-publish.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: 🚀 스토리북 배포 | |
id: deployment | |
uses: actions/deploy-pages@v3 | |
with: | |
token: ${{ github.token }} |