Skip to content

Commit bb5d825

Browse files
paddymulclaude
andcommitted
ci: add storybook deploy job to checks.yml
Move storybook deployment into checks.yml so the deleted deploy-ghpage.yml and publish-storybook.yml workflows are fully replaced. DeployStorybook runs only on main push, after storybook tests pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e784aca commit bb5d825

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/checks.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
branches: "*"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
914
concurrency:
1015
group: ${{ github.workflow }}-${{ github.ref }}
1116
cancel-in-progress: true
@@ -316,6 +321,44 @@ jobs:
316321
- name: Run WASM Marimo Playwright Tests
317322
run: bash scripts/test_playwright_wasm_marimo.sh
318323

324+
# ---------------------------------------------------------------------------
325+
# Deploy Storybook to GitHub Pages (main only)
326+
# ---------------------------------------------------------------------------
327+
328+
DeployStorybook:
329+
name: Deploy Storybook
330+
if: github.ref == 'refs/heads/main'
331+
needs: [TestStorybook]
332+
runs-on: depot-ubuntu-latest
333+
timeout-minutes: 10
334+
environment:
335+
name: github-pages
336+
url: ${{ steps.deployment.outputs.page_url }}
337+
steps:
338+
- uses: actions/checkout@v4
339+
- name: Setup pnpm
340+
uses: pnpm/action-setup@v4
341+
with:
342+
version: 9.10.0
343+
- name: Setup Node.js with pnpm cache
344+
uses: actions/setup-node@v4
345+
with:
346+
cache: 'pnpm'
347+
cache-dependency-path: 'packages/pnpm-lock.yaml'
348+
- name: Install pnpm dependencies
349+
working-directory: packages
350+
run: pnpm install --frozen-lockfile
351+
- name: Build Storybook
352+
working-directory: packages/buckaroo-js-core
353+
run: pnpm build-storybook
354+
- name: Upload Pages artifact
355+
uses: actions/upload-pages-artifact@v3
356+
with:
357+
path: ./packages/buckaroo-js-core/dist/storybook
358+
- name: Deploy to GitHub Pages
359+
id: deployment
360+
uses: actions/deploy-pages@v4
361+
319362
# ---------------------------------------------------------------------------
320363
# Docs — build documentation and check links
321364
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)