Skip to content

Merge pull request #48 from easylogic/release-20240828-071811 #7

Merge pull request #48 from easylogic/release-20240828-071811

Merge pull request #48 from easylogic/release-20240828-071811 #7

name: Deploy Storybook to GitHub Pages
on:
push:
branches:
- main # 메인 브랜치에 푸시될 때 실행
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '18' # 노드 버전 18 이상으로 설정
cache: 'pnpm'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Build Storybook
run: pnpm build-storybook
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/dev-storybook/storybook-static
cname: react-summernote.easylogic.studio # CNAME 설정