From aa0457b7bf86227fb1b1099bc6403434b531bc67 Mon Sep 17 00:00:00 2001 From: defiQUG Date: Mon, 27 Apr 2026 11:44:38 -0700 Subject: [PATCH] Ensure Node 20 for DBIS deploy --- .../phoenix-deploy-dbis-portal-live-from-workspace.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/deployment/phoenix-deploy-dbis-portal-live-from-workspace.sh b/scripts/deployment/phoenix-deploy-dbis-portal-live-from-workspace.sh index 1ed9f2d4..b4eae43b 100755 --- a/scripts/deployment/phoenix-deploy-dbis-portal-live-from-workspace.sh +++ b/scripts/deployment/phoenix-deploy-dbis-portal-live-from-workspace.sh @@ -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"