From 87132982c41334255eaa8f20073a28573f8de915 Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Wed, 8 Apr 2026 11:00:48 -1000 Subject: [PATCH] fix: serve registry.json on GitHub Pages The build:registry step generates registry.json at the package root (packages/ghost-ui/registry.json), but Vite only copies files from public/ into dist/. Without this copy step, registry.json is never included in the Pages deployment artifact, resulting in a 404 at https://block.github.io/ghost/registry.json. This adds a cp step between build:registry and the Vite build so registry.json lands in public/ and Vite picks it up automatically. --- .github/workflows/deploy-pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index d35be46..3f2952d 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -28,6 +28,8 @@ jobs: - run: pnpm install --frozen-lockfile - name: Build registry run: pnpm --filter @ghost/ui build:registry + - name: Copy registry.json to public for static serving + run: cp packages/ghost-ui/registry.json packages/ghost-ui/public/registry.json - name: Build Ghost UI run: pnpm --filter @ghost/ui build env: