ci: npm ci --ignore-scripts (skip hugo-extended postinstall that hangs on arm64)
Build & Deploy Brands / build-and-deploy (push) Failing after 16s
Build & Deploy Brands / build-and-deploy (push) Failing after 16s
This commit is contained in:
@@ -93,13 +93,22 @@ jobs:
|
||||
tar -xzf /tmp/hugo.tar.gz -C "$(dirname "$HUGO_BIN")" hugo
|
||||
"$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
|
||||
run: |
|
||||
set -euo pipefail
|
||||
node --version
|
||||
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
|
||||
# first connect and pinned thereafter (StrictHostKeyChecking=accept-new
|
||||
|
||||
Reference in New Issue
Block a user