climaybe 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/version.txt +1 -1
- package/package.json +1 -1
- package/src/workflows/build/build-pipeline.yml +3 -0
package/README.md
CHANGED
|
@@ -243,14 +243,14 @@ When enabled, builds are **resilient**:
|
|
|
243
243
|
- If `_scripts/*.js` or `_styles/main.css` are missing, the build workflow **skips** those steps and continues.
|
|
244
244
|
- `init` may offer to create entrypoints; **default answer is No**.
|
|
245
245
|
- Script bundling preserves comments/spacing and emits bundles only for root entry files (files imported by other top-level `_scripts/*.js` are inlined, not emitted separately).
|
|
246
|
-
-
|
|
246
|
+
- Script bundles are written to `assets/*.js` (readable by default; use `climaybe build-scripts --minify` if you want minified output).
|
|
247
247
|
- Live minified `assets/*` changes are intentionally excluded from hotfix backports to `main` (no branch-specific `.gitignore` split required).
|
|
248
248
|
|
|
249
249
|
Build workflows install deps with `npm ci` and run `npx --no-install climaybe build-scripts` plus `npx --no-install climaybe build`, so CI uses lockfile-pinned versions (no `@latest` drift).
|
|
250
250
|
|
|
251
251
|
| Workflow | Trigger | What it does |
|
|
252
252
|
|----------|---------|-------------|
|
|
253
|
-
| `build-pipeline.yml` | Push to any branch (ignores docs-only/tooling-only paths; see CI/CD reference) | Runs reusable build; Lighthouse only on branch **`staging`**, when a build ran, and secrets allow |
|
|
253
|
+
| `build-pipeline.yml` | Push to any branch (ignores docs-only/tooling-only paths; see CI/CD reference) | Runs reusable build; skips entirely on **`live-*`** when the pusher is a GitHub **`[bot]`** user; Lighthouse only on branch **`staging`**, when a build ran, and secrets allow |
|
|
254
254
|
| `reusable-build.yml` | workflow_call | Path-filtered `build-scripts` / Tailwind (`climaybe build`), then commits compiled assets when changed |
|
|
255
255
|
| `create-release.yml` | Push tag `v*`, or **workflow_run** after Post-Merge Tag / Nightly Hotfix Tag succeed on `main` | Builds release archive and creates GitHub Release notes from commits since the previous tag. It filters repetitive automation subjects (main→staging syncs, store/root sync chores, bot merge noise) before generating notes. If remaining subjects are low-signal and `GEMINI_API_KEY` exists, it uses Gemini to generate cleaner merchant-facing notes. Also covers tags created by workflows with `GITHUB_TOKEN`, which may not trigger tag-push workflows. |
|
|
256
256
|
|
package/bin/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.4
|
package/package.json
CHANGED
|
@@ -22,11 +22,14 @@ jobs:
|
|
|
22
22
|
# Skip pure store-sync + hotfix-backport commits; those are infrastructure-only
|
|
23
23
|
# syncs from staging/live stores back to main and should not trigger heavy theme
|
|
24
24
|
# review / build pipelines.
|
|
25
|
+
# On live-<alias>, skip when the pusher is a GitHub bot (actor name contains "[bot]")
|
|
26
|
+
# so automated commits do not run script/Tailwind compilation.
|
|
25
27
|
if: >
|
|
26
28
|
!contains(github.event.head_commit.message, '[hotfix-backport]')
|
|
27
29
|
&& !contains(github.event.head_commit.message, '[stores-to-root]')
|
|
28
30
|
&& !contains(github.event.head_commit.message, '[root-to-stores]')
|
|
29
31
|
&& !(github.actor == 'github-actions[bot]' && contains(github.event.head_commit.message, 'chore(assets): update compiled javascript and css'))
|
|
32
|
+
&& !(startsWith(github.ref_name, 'live-') && contains(github.actor, '[bot]'))
|
|
30
33
|
uses: ./.github/workflows/reusable-build.yml
|
|
31
34
|
|
|
32
35
|
lighthouse-gate:
|