From 236bc44aa176d75459cefe76766e0cde65758dec Mon Sep 17 00:00:00 2001 From: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com> Date: Mon, 11 May 2026 00:03:19 +0000 Subject: [PATCH] fix(ci): build dashboard before packing npm tarball bun pm pack does not run prepublishOnly, so the dashboard assets were never built into public/ before creating the tarball. This resulted in npm packages missing the public/ folder entirely. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9351bd2..ba24df9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,13 @@ jobs: # --- Release-branch only: npm tarball + Docker image --- + # Build dashboard assets into opentower/public before packing. + # bun pm pack does NOT run prepublishOnly, so we must build explicitly. + - name: Build dashboard + if: startsWith(github.ref, 'refs/heads/release/') + run: bun run build + working-directory: packages/opentower + # Pack and upload the npm tarball. - name: Pack tarball if: startsWith(github.ref, 'refs/heads/release/')