From a32814c1ee692a0a4e2ba7383aa06dd7ed3a3d30 Mon Sep 17 00:00:00 2001 From: allexp1 Date: Mon, 12 Oct 2026 12:14:19 +0300 Subject: [PATCH] scripts/publish.sh: publish only skill folders, skip skills/README.md With no names given, the script looped over every entry in skills/, so after the nine packages it tried skills/README.md/publish.sh and exited with 'Not a directory'. It now picks folders with a package.json. --- scripts/publish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index f5d8780..caee7dd 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -4,5 +4,6 @@ set -euo pipefail cd "$(dirname "$0")/.." npm whoami >/dev/null 2>&1 || { echo "Not logged in to npm. Run: npm login"; exit 1; } -names=("$@"); [[ ${#names[@]} -eq 0 ]] && names=($(ls skills)) +names=("$@") +if [[ ${#names[@]} -eq 0 ]]; then for d in skills/*/; do [[ -f "${d}package.json" ]] && names+=("$(basename "$d")"); done; fi for n in "${names[@]}"; do echo "== $n"; bash "skills/$n/publish.sh"; echo; done