From 4de8860757696289271bb18a9e55d0108bacb7d1 Mon Sep 17 00:00:00 2001 From: lilsus Date: Thu, 16 Jul 2026 06:46:45 +0300 Subject: [PATCH] ci: npm ci --ignore-scripts (skip hugo-extended postinstall that hangs on arm64) --- .gitea/workflows/deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b80fdcf..d7387a4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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