add more checks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user