Skip to content

Commit cebc254

Browse files
authored
fix(ci): trigger examples redeploy when libs change (#46)
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.
1 parent 3cc1d57 commit cebc254

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ jobs:
278278
if printf '%s\n' "$changed_files" | grep -E '^(vercel\.examples\.json|scripts/assemble-examples\.ts)$' >/dev/null; then
279279
examples_changed=true
280280
fi
281+
if printf '%s\n' "$changed_files" | grep -E '^libs/(angular|chat|render)/' >/dev/null; then
282+
examples_changed=true
283+
fi
281284
echo "changed=$examples_changed" >> "$GITHUB_OUTPUT"
282285
- name: Build and assemble Angular examples
283286
if: steps.examples_changed.outputs.changed == 'true'

scripts/assemble-examples.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env npx tsx
22
/**
3-
* Build all Angular example apps and assemble them into a deploy directory.
3+
* Build all Angular example apps and assemble them into a Vercel deploy directory.
44
*
55
* Output: deploy/examples/{product}/{topic}/ with index.html, main.js, styles.css
66
*

0 commit comments

Comments
 (0)