diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index c04b064..d14185b 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -147,6 +147,16 @@ jobs: cp -f "$DEFAULT_DIR/.env" "$EFFECTIVE_APP_DIR/.env" fi + - name: Clean Next.js cache (.next) to avoid EACCES + run: | + cd "$EFFECTIVE_APP_DIR" + if [ -e .next ]; then + echo "Removing existing .next (may be root-owned from previous container)" + rm -rf .next || (mv .next ".next.old.$(date +%s)" || true) + fi + mkdir -p .next + chmod -R u+rwX .next || true + - name: Install and build (Next.js) run: | cd "$EFFECTIVE_APP_DIR"