Skip to content

Chore: Add Storybook and Github Actions workflow #1

Chore: Add Storybook and Github Actions workflow

Chore: Add Storybook and Github Actions workflow #1

Workflow file for this run

name: Storybook CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Build Storybook
run: npm run build-storybook
- name: Deploy Storybook to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static