Ensure Node 20 for DBIS deploy
Some checks failed
Deploy to Phoenix / validate (push) Failing after 32s
Deploy to Phoenix / deploy (push) Has been skipped
Deploy to Phoenix / deploy-atomic-swap-dapp (push) Has been skipped
Deploy to Phoenix / cloudflare (push) Has been skipped

This commit is contained in:
defiQUG
2026-04-27 11:44:38 -07:00
parent aa08972436
commit aa0457b7bf

View File

@@ -125,9 +125,11 @@ if ! command -v curl >/dev/null 2>&1; then
apt-get install -y -qq curl ca-certificates
fi
if ! command -v node >/dev/null 2>&1; then
NODE_MAJOR="\$(node -p 'process.versions.node.split(\".\")[0]' 2>/dev/null || echo 0)"
if [ "\$NODE_MAJOR" -lt 20 ]; then
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
hash -r
fi
export PATH="/usr/local/bin:/usr/bin:/bin:\$PATH"