add more checks

This commit is contained in:
John Doe
2026-01-31 11:17:38 -05:00
parent b124c185ff
commit d4e87a8110

View File

@@ -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