@biffo/cli 0.249.0 → 0.249.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/verify.sh +23 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.249.0",
3
+ "version": "0.249.1",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/scripts/verify.sh CHANGED
@@ -411,8 +411,27 @@ else
411
411
  NO_CI=1
412
412
  fi
413
413
 
414
- if [ -n "$CI_YML_UNREADABLE" ]; then
415
- printf '\n\033[31mverify: CANNOT TELL - .github/workflows/ci.yml exists but could not be read\033[0m\n'
414
+ # release-guards.yml (#1319): the "Release Guards" job's own trigger needed
415
+ # `edited` added to it (so a PR title/body correction re-evaluates
416
+ # automatically), and giving that trigger to the WHOLE build matrix in
417
+ # ci.yml would re-run every heavy job on every description tweak -- so the
418
+ # job moved to this second file instead (see that file's own header). Its
419
+ # absence does NOT mean "no CI to mirror" -- ci.yml alone is still a real CI
420
+ # and NO_CI must not fire just because a repo has not adopted the split (a
421
+ # sibling never will; an instance not yet upgraded past #1319 has not yet).
422
+ # But if it EXISTS and cannot be READ, that is the identical #1218 shape as
423
+ # ci.yml itself, and ci_has() must search it too or "practices-monotonic"
424
+ # (moved into it) would silently stop being locally mirrored the moment it
425
+ # left ci.yml -- covered less than verify.sh claims, with nothing saying so.
426
+ RELEASE_GUARDS_YML_UNREADABLE=""
427
+ if [ -f .github/workflows/release-guards.yml ] && [ ! -r .github/workflows/release-guards.yml ]; then
428
+ RELEASE_GUARDS_YML_UNREADABLE=1
429
+ fi
430
+
431
+ if [ -n "$CI_YML_UNREADABLE" ] || [ -n "$RELEASE_GUARDS_YML_UNREADABLE" ]; then
432
+ printf '\n\033[31mverify: CANNOT TELL - a core workflow file exists but could not be read\033[0m\n'
433
+ [ -n "$CI_YML_UNREADABLE" ] && printf ' .github/workflows/ci.yml\n'
434
+ [ -n "$RELEASE_GUARDS_YML_UNREADABLE" ] && printf ' .github/workflows/release-guards.yml\n'
416
435
  printf 'Permissions, a partial checkout, or a filesystem error -- not "no CI to\n'
417
436
  printf 'mirror" (that is a missing ci.yml, handled separately, and does not\n'
418
437
  printf 'block). Every check gated on ci_has() would silently be skipped and the\n'
@@ -424,7 +443,8 @@ fi
424
443
 
425
444
  ci_has() {
426
445
  [ -n "${NO_CI:-}" ] && return 0
427
- grep -qE "$1" .github/workflows/ci.yml
446
+ grep -qE "$1" .github/workflows/ci.yml && return 0
447
+ [ -f .github/workflows/release-guards.yml ] && grep -qE "$1" .github/workflows/release-guards.yml
428
448
  }
429
449
 
430
450
  have_script() {