Skip to content

Upgrade to Storybook 8 (#1514) #1080

Upgrade to Storybook 8 (#1514)

Upgrade to Storybook 8 (#1514) #1080

Workflow file for this run

name: Chromatic CI
on:
push:
env:
BROWSERSLIST_IGNORE_OLD_DATA: 1
jobs:
chromatic-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by chromatic for git history
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: PNPM cache via actions/cache@v3
id: pnpm-cache
uses: actions/cache@v3
with:
path: /home/runner/work/design-system/design-system/common/temp/pnpm-store/v3
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: node common/scripts/install-run-rush.js install
- name: Build components
run: node common/scripts/install-run-rush.js build --timeline
- name: Build Storybook
working-directory: ./
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
run: node common/scripts/install-run-rush.js build:storybook