ci: npm ci --ignore-scripts (skip hugo-extended postinstall that hangs on arm64)
Build & Deploy Brands / build-and-deploy (push) Failing after 16s

This commit is contained in:
2026-07-16 06:46:45 +03:00
parent be7e92b000
commit 7e53cf3ce6
+11 -2
View File
@@ -93,13 +93,22 @@ jobs:
tar -xzf /tmp/hugo.tar.gz -C "$(dirname "$HUGO_BIN")" hugo tar -xzf /tmp/hugo.tar.gz -C "$(dirname "$HUGO_BIN")" hugo
"$HUGO_BIN" version "$HUGO_BIN" version
# --- 4. Install Node deps once (Tailwind/PostCSS used by Hugo Pipes). --- # --- 4. Install Node deps once (Tailwind/PostCSS used by Hugo Pipes).
# --ignore-scripts is critical: the template's hugo-extended
# devDependency has a postinstall that downloads a ~50MB Hugo binary,
# which hangs npm ci for minutes on arm64. We install Hugo ourselves
# in step 3, so skipping lifecycle scripts is safe and much faster.
# Tailwind v3 + PostCSS + autoprefixer are pure JS (no build step). ---
- name: Install template Node deps - name: Install template Node deps
run: | run: |
set -euo pipefail set -euo pipefail
node --version node --version
cd "$TEMPLATE_DIR" cd "$TEMPLATE_DIR"
if [ -f package-lock.json ]; then npm ci --no-audit --no-fund; else npm install --no-audit --no-fund; fi if [ -f package-lock.json ]; then
npm ci --no-audit --no-fund --ignore-scripts
else
npm install --no-audit --no-fund --ignore-scripts
fi
# --- 5. Prepare the SSH deploy key for rsync. Host key is trusted on # --- 5. Prepare the SSH deploy key for rsync. Host key is trusted on
# first connect and pinned thereafter (StrictHostKeyChecking=accept-new # first connect and pinned thereafter (StrictHostKeyChecking=accept-new