Skip to content

Workflow file for this run

# .github/workflows/deploy-github-pages.yaml
# Workflow name
name: Publish Storybook to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4
# Set up Node
- uses: actions/setup-node@v4
with:
node-version: "23.x"
# Install dependencies with pnpm
- uses: pnpm/action-setup@v4
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/[email protected]
with:
install_command: pnpm install --no-frozen-lockfile # default: npm ci
build_command: pnpm run build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true