From d4e87a8110f2420ebef204b94226bdbd2c3bdd00 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sat, 31 Jan 2026 11:17:38 -0500 Subject: [PATCH] add more checks --- .gitea/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6175e43..ae99ad8 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -34,6 +34,24 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' + + # Fallback: Manual Node.js installation if setup-node fails + - name: Manual Node.js setup (fallback) + if: failure() + run: | + echo "Setting up Node.js manually as fallback..." + curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - + sudo apt-get install -y nodejs + node --version + npm --version + + # Verify Node.js installation + - name: Verify Node.js installation + run: | + which node || echo "Node not found in PATH" + node --version || echo "Node version command failed" + npm --version || echo "NPM version command failed" + echo "PATH: $PATH" - name: Determine final version id: get_final_ver