Skip to content

feat: Deploy Storybook as documentation site #6

feat: Deploy Storybook as documentation site

feat: Deploy Storybook as documentation site #6

name: Deploy Storybook to GitHub Pages
on: [push, pull_request]
permissions:
contents: write
pages: write
jobs:
publish:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Build Storybook
run: pnpm run build-storybook
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: storybook-static