Skip to content

Deploy storybook to docs folder #2

Deploy storybook to docs folder

Deploy storybook to docs folder #2

Workflow file for this run

name: Build and Deploy Storybook
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: 'npm'
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Build Storybook
run: npm run build-storybook
deploy-storybook:
needs: build-storybook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs