From dd2565b1198ee409d0a19da649c09363834bb66a Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 29 Apr 2026 20:59:28 +1200 Subject: [PATCH 1/3] fix(ci): build audience-core before SDK bundle in CDN deploy workflow (AUD-239) The deploy workflow was calling pnpm --filter @imtbl/audience build without first building its local workspace dependency @imtbl/audience-core, causing esbuild to fail with "Could not resolve @imtbl/audience-core" because the dist/ folder did not exist in CI. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy-audience-cdn.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-audience-cdn.yaml b/.github/workflows/deploy-audience-cdn.yaml index 3e021c2ec6..e3cbea3613 100644 --- a/.github/workflows/deploy-audience-cdn.yaml +++ b/.github/workflows/deploy-audience-cdn.yaml @@ -32,6 +32,9 @@ jobs: - name: setup uses: ./.github/actions/setup + - name: Build audience-core + run: pnpm --filter @imtbl/audience-core build + - name: Build audience SDK bundle run: pnpm --filter @imtbl/audience build From 1e58c6bdd192d2edd3155135f0cf868163c5f31c Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 29 Apr 2026 21:08:40 +1200 Subject: [PATCH 2/3] fix(ci): also build @imtbl/metrics before audience-core in CDN deploy (AUD-239) @imtbl/metrics is a workspace dep of audience-core and is inlined by the SDK bundle build via BUNDLED_WORKSPACE_DEPS. Without its dist/ present in CI the bundle build would still fail. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy-audience-cdn.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-audience-cdn.yaml b/.github/workflows/deploy-audience-cdn.yaml index e3cbea3613..64706f3245 100644 --- a/.github/workflows/deploy-audience-cdn.yaml +++ b/.github/workflows/deploy-audience-cdn.yaml @@ -32,6 +32,9 @@ jobs: - name: setup uses: ./.github/actions/setup + - name: Build metrics + run: pnpm --filter @imtbl/metrics build + - name: Build audience-core run: pnpm --filter @imtbl/audience-core build From 37273315b6a1bb8fecddfe981e9d376a8b93960a Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 29 Apr 2026 21:15:58 +1200 Subject: [PATCH 3/3] fix(ci): use pnpm ... filter to build all workspace deps (AUD-239) Replace three manual build steps with a single `pnpm --filter @imtbl/audience... build` which automatically builds all transitive workspace dependencies in the correct order, matching the pattern already used in audience-bundle-size.yaml. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/deploy-audience-cdn.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy-audience-cdn.yaml b/.github/workflows/deploy-audience-cdn.yaml index 64706f3245..2c56838295 100644 --- a/.github/workflows/deploy-audience-cdn.yaml +++ b/.github/workflows/deploy-audience-cdn.yaml @@ -32,14 +32,8 @@ jobs: - name: setup uses: ./.github/actions/setup - - name: Build metrics - run: pnpm --filter @imtbl/metrics build - - - name: Build audience-core - run: pnpm --filter @imtbl/audience-core build - - name: Build audience SDK bundle - run: pnpm --filter @imtbl/audience build + run: pnpm --filter @imtbl/audience... build - name: Verify bundle exists run: |