[Fix] Installazione Node.js nel runner Windows
Build and Push Docker Images / Build Windows Container (push) Failing after 12s
Build and Push Docker Images / Build Linux Container (push) Has been cancelled
Build and Push Docker Images / Create Multi-Platform Manifest (push) Has been cancelled

- 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:
2026-01-24 13:37:20 +01:00
parent 71c38b4e90
commit 263ae063ac
+12
View File
@@ -99,6 +99,18 @@ jobs:
packages: write packages: write
steps: 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 - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4