Skip to content

chore(deps): update dependency @types/node to v22.10.5 #721

chore(deps): update dependency @types/node to v22.10.5

chore(deps): update dependency @types/node to v22.10.5 #721

name: Deploy Storybook PR Preview
concurrency: storybook-pr-preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
deploy-pr-preview:
name: Deploy Storybook PR Preview
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout default branch
uses: actions/checkout@v4
- name: Use pnpm
if: github.event.action != 'closed'
uses: pnpm/action-setup@v3
with:
run_install: false
- name: Use Node.js
if: github.event.action != 'closed'
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install npm dependencies
if: github.event.action != 'closed'
run: pnpm i --frozen-lockfile
- name: Build Fondue Icons
if: github.event.action != 'closed'
run: pnpm build:icons
- name: Build Fondue Tokens
if: github.event.action != 'closed'
run: pnpm build:tokens
- name: Build Storybook docs
if: github.event.action != 'closed'
run: pnpm build:storybook:packages && pnpm build:storybook:main
env:
STORYBOOK_PATH_PREFIX: "/pr-preview/pr-${{ github.event.number }}/"
- name: Deploy Storybook to GitHub Pages
uses: rossjrw/[email protected]
with:
source-dir: ./storybook-docs/storybook-static