|
2 | 2 | publish = "dist/apps/tangle-cloud" |
3 | 3 | command = "yarn nx build tangle-cloud" |
4 | 4 |
|
| 5 | + # Trigger a master deploy whenever the app's own source, the shared |
| 6 | + # libs it consumes, or the workspace dep manifest changes. The previous |
| 7 | + # version gated on apps/tangle-cloud/CHANGELOG.md only, which silently |
| 8 | + # cancelled every push that wasn't a release-PR — a year of overhaul |
| 9 | + # work piled up un-deployed before we caught it. CHANGELOG.md is now |
| 10 | + # implicitly covered (it's inside apps/tangle-cloud/), and any source/ |
| 11 | + # config/lockfile change also re-triggers. |
| 12 | + # |
| 13 | + # Non-master branches always build (gives PR-preview deploys). |
| 14 | + ignore = "[ \"$BRANCH\" != \"master\" ] && exit 1 || git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- apps/tangle-cloud/ libs/ package.json yarn.lock tsconfig.base.json nx.json && exit 0 || exit 1" |
| 15 | + |
5 | 16 | # ─── Per-context environment ─────────────────────────────────────────── |
6 | 17 | # |
7 | 18 | # Vite reads VITE_* vars at build time and inlines them into the bundle, |
|
28 | 39 | # Same default for any non-master branch deploy (e.g. staging). |
29 | 40 | VITE_BLUEPRINT_IFRAME_ENABLED = "true" |
30 | 41 |
|
31 | | - # If the branch is not master, continue the build process |
32 | | - # If the branch is master, check if the project's CHANGELOG.md file has changed |
33 | | - # If the CHANGELOG.md file has changed, continue the build process, |
34 | | - # Otherwise, stop the build process |
35 | | - ignore = "[ \"$BRANCH\" != \"master\" ] && exit 1 || git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- apps/tangle-cloud/CHANGELOG.md && exit 0 || exit 1" |
36 | | - |
37 | 42 | # ─── Security headers ─────────────────────────────────────────────────── |
38 | 43 | # |
39 | 44 | # Scope is intentionally narrow: we set ONLY the headers needed to harden |
|
0 commit comments