Create stories for theming workshop #1082
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |