From c972af2690ee58d579e2c9480f52739a54585e7c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 14 Jun 2026 11:57:20 -0400 Subject: [PATCH] ci: make npm cache step non-fatal (fixes recurring typecheck flake #828) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TypeScript-typecheck job intermittently failed at 'Cache npm download cache' (transient cache-backend hiccup), which skipped install + type check and marked the run red — 3x during the issues+systems build, all on pushes the cache step had no bearing on. continue-on-error: true degrades a cache failure to 'install without cache' instead of failing the job. Closes the rerun churn from task #828. Co-Authored-By: Claude Opus 4.8 (1M context) --- .forgejo/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5ce0712..8180ffb 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -81,6 +81,11 @@ jobs: - name: Cache npm download cache uses: actions/cache@v4 + # Non-fatal: a transient cache-backend hiccup must NOT fail the whole + # typecheck job (it was skipping install + type check and reporting red + # on backend-only pushes — see issue task #828). On cache miss/error the + # job just installs without the cache. + continue-on-error: true with: path: ~/.npm key: npm-cache-${{ hashFiles('frontend/package-lock.json') }}