From 1e2e04c5de9a6aa32560285a848c2787601678ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 30 Mar 2026 11:01:26 +0800 Subject: [PATCH] ci: add verbose logging and cache cleanup for debugging Add comprehensive debug output to CI build step to diagnose build failures: - Log Node.js and npm versions - Check node_modules state - Clean cache directories before build - Capture full build output to build.log This will help identify the root cause of CI build failures. --- .woodpecker.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0600262..66270b7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -123,9 +123,18 @@ steps: - lint - type-check commands: + - echo "=== Debug: Environment info ===" + - node --version + - npm --version + - echo "=== Debug: Checking node_modules ===" + - ls -la node_modules/ | head -20 + - echo "=== Debug: Cleaning cache ===" + - rm -rf node_modules/.cache + - rm -rf .next + - rm -rf dist - echo "Building production artifacts" - - npm run build - - echo "Build completed" + - npm run build 2>&1 | tee build.log + - echo "=== Debug: Build completed ===" - ls -la dist/ - echo "Deploying to production" - mkdir -p ~/.ssh