Skip to content

Merge pull request #6 from nathanjessen/fix-node-env #21

Merge pull request #6 from nathanjessen/fix-node-env

Merge pull request #6 from nathanjessen/fix-node-env #21

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build Storybook
run: CI=false npm run build-storybook
- name: Deploy Storybook
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
publish_branch: docs