From 2708ee46a51f38cbe432d629736578da1e5d2e42 Mon Sep 17 00:00:00 2001 From: Stefan Steiner Date: Mon, 18 May 2026 02:10:23 -0700 Subject: [PATCH] fix(ci): prevent npm-publish chmod step from failing on missing binaries The "Restore executable bits" step failed because `[[ -f "$f" ]] && chmod +x "$f"` returns exit code 1 under `set -euo pipefail` when the file doesn't exist (e.g. platform dirs without artifacts, or Windows .exe binaries not matching extensionless names). Add `|| true` and include .exe variants. --- .github/workflows/npm-build-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-build-publish.yml b/.github/workflows/npm-build-publish.yml index 4d1f6a5..c9841e0 100644 --- a/.github/workflows/npm-build-publish.yml +++ b/.github/workflows/npm-build-publish.yml @@ -258,8 +258,8 @@ jobs: set -euo pipefail for d in hyperdb-mcp/npm/* hyperdb-api-node/npm/*; do [[ -d "$d" ]] || continue - for f in "$d"/hyperdb-mcp "$d"/hyperd; do - [[ -f "$f" ]] && chmod +x "$f" + for f in "$d"/hyperdb-mcp "$d"/hyperdb-mcp.exe "$d"/hyperd "$d"/hyperd.exe; do + [[ -f "$f" ]] && chmod +x "$f" || true done done