[Fix] Installazione Node.js nel runner Windows
- Aggiunto step per installare Node.js se mancante - Usa Chocolatey per installazione automatica - Node.js richiesto dalle GitHub Actions (checkout@v4) - Fix: Cannot find node in PATH su runner Windows
This commit is contained in:
@@ -99,6 +99,18 @@ jobs:
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Setup Node.js for Actions
|
||||
run: |
|
||||
# Check if node is available
|
||||
if (!(Get-Command node -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "Node.js not found, installing..."
|
||||
choco install nodejs -y --version=20.11.0
|
||||
refreshenv
|
||||
}
|
||||
node --version
|
||||
shell: pwsh
|
||||
continue-on-error: false
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user