Skip to content

Commit 3b06d47

Browse files
committed
build: upgrade to Node.js 20 via NodeSource
Replace apt-based nodejs/npm installation with NodeSource repository to provide Node.js 20.x for workflow steps. - Update build/config.json to use script-based installation - Add install_nodejs-20() function in build/tools.sh using NodeSource
1 parent 1e9c4df commit 3b06d47

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build/config.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,9 @@
7979
},
8080
{
8181
"category": "node",
82-
"source": "apt",
82+
"source": "script",
8383
"packages": [
84-
"nodejs",
85-
"npm"
84+
"nodejs-20"
8685
]
8786
},
8887
{

build/tools.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ function install_yq() {
8989
mv "/tmp/yq_linux_${DPKG_ARCH}" /usr/local/bin/yq
9090
}
9191

92+
function install_nodejs-20() {
93+
# Install Node.js 20.x and npm using NodeSource setup script
94+
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
95+
apt-get install -y --no-install-recommends nodejs
96+
}
97+
9298
function install_powershell() {
9399
local DPKG_ARCH PWSH_VERSION PWSH_DOWNLOAD_URL
94100

0 commit comments

Comments
 (0)