Skip to content

🔖 Prepare for initial release #28

🔖 Prepare for initial release

🔖 Prepare for initial release #28

name: Deploy Storybook to GitHub Pages
on:
push:
branches:
- main
permissions:
packages: write
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build Storybook
run: npm run build:storybook
- name: Deploy Storybook to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static