Skip to content

[Deployment] Storybook GitHub pages 배포 #7

[Deployment] Storybook GitHub pages 배포

[Deployment] Storybook GitHub pages 배포 #7

name: 'Storybook Deployment'
on:
pull_request:
branches:
- develop
jobs:
build-and-deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '21'
- name: Install Pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build-storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./storybook-static
github_token: ${{ secrets.GITHUB_TOKEN }}