From 1a206ebcdf6482ab9694f6b4d1f13aca964da12e Mon Sep 17 00:00:00 2001 From: Brian Love Date: Mon, 6 Apr 2026 21:45:49 -0700 Subject: [PATCH] fix(ci): trigger examples redeploy when libs change + redeploy with apiUrl fix The examples deploy change detection only checked cockpit/**/angular/ and scripts/assemble-examples.ts. Library changes (libs/angular/, libs/chat/, libs/render/) were not detected, so the apiUrl fix from PR #43 was never deployed. Now checks all three lib directories. --- .github/workflows/ci.yml | 3 +++ scripts/assemble-examples.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd7500a7e..528a7fb40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -278,6 +278,9 @@ jobs: if printf '%s\n' "$changed_files" | grep -E '^(vercel\.examples\.json|scripts/assemble-examples\.ts)$' >/dev/null; then examples_changed=true fi + if printf '%s\n' "$changed_files" | grep -E '^libs/(angular|chat|render)/' >/dev/null; then + examples_changed=true + fi echo "changed=$examples_changed" >> "$GITHUB_OUTPUT" - name: Build and assemble Angular examples if: steps.examples_changed.outputs.changed == 'true' diff --git a/scripts/assemble-examples.ts b/scripts/assemble-examples.ts index 0f8f2559b..e42ea637c 100644 --- a/scripts/assemble-examples.ts +++ b/scripts/assemble-examples.ts @@ -1,6 +1,6 @@ #!/usr/bin/env npx tsx /** - * Build all Angular example apps and assemble them into a deploy directory. + * Build all Angular example apps and assemble them into a Vercel deploy directory. * * Output: deploy/examples/{product}/{topic}/ with index.html, main.js, styles.css *