From 2021948371bc66898cd8ae8071c190a8b73dab48 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sun, 5 Jul 2026 17:37:46 +0000 Subject: [PATCH] ci(prober): fall back to npm install if npm ci fails (missing/stale lock) The deploy-prober run failed at 'npm ci' because prober/package-lock.json was absent at that commit. Harden provision.sh so a missing or out-of-sync lockfile falls back to 'npm install' instead of hard-failing the self-bootstrapping deploy. Co-Authored-By: Claude Opus 4.8 --- prober/deploy/provision.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prober/deploy/provision.sh b/prober/deploy/provision.sh index edee6bd7..9e7fbadb 100644 --- a/prober/deploy/provision.sh +++ b/prober/deploy/provision.sh @@ -38,7 +38,9 @@ chmod 600 "${ENV_FILE}" echo "[provision] build prober" cd "${DEPLOY_PATH}/prober" -npm ci --no-audit --no-fund +# Prefer a reproducible install, but never hard-fail the deploy if the lockfile +# is missing or out of sync with package.json — fall back to a plain install. +npm ci --no-audit --no-fund || npm install --no-audit --no-fund npm run build echo "[provision] install + (re)start systemd service"