File size: 650 Bytes
d17f113 e1ff5e6 d17f113 e1ff5e6 d17f113 e1ff5e6 d17f113 e1ff5e6 d17f113 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # postBuild
#!/usr/bin/env bash
set -euo pipefail
echo "[postBuild] starting..."
ls -la
node -v || true
npm -v || true
git --version || true
REPO_DIR="crypto-indicators-mcp"
REPO_URL="https://github.com/kukapay/crypto-indicators-mcp.git"
if [ ! -d "$REPO_DIR" ]; then
echo "[postBuild] cloning $REPO_URL"
git clone --depth=1 "$REPO_URL" "$REPO_DIR"
else
echo "[postBuild] $REPO_DIR exists; syncing"
(cd "$REPO_DIR" && git fetch --depth=1 origin && git reset --hard origin/HEAD)
fi
echo "[postBuild] npm install in $REPO_DIR"
cd "$REPO_DIR"
if [ -f package-lock.json ]; then npm ci; else npm install --omit=dev; fi
echo "[postBuild] done." |