fix: update nodejs

This commit is contained in:
Jakub Panek
2026-01-24 01:37:02 +01:00
committed by GitHub
parent c7f3bf0ac9
commit 9bf5e40138
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ ARG FROM_TAG
# > Our custom ARGs
# latest Node.js LTS versions
ARG NODE_VERSION="16 18"
ARG NODE_VERSION="20 24"
ARG DISTRO=ubuntu
ARG TYPE=act
ARG RUNNER
+1 -1
View File
@@ -130,7 +130,7 @@ for ver in "${NODE[@]}"; do
wget "https://nodejs.org/download/release/latest-v${ver}.x/node-$VER-linux-$(node_arch).tar.xz" -O "node-$VER-linux-$(node_arch).tar.xz"
tar -Jxf "node-$VER-linux-$(node_arch).tar.xz" --strip-components=1 -C "$NODEPATH"
rm "node-$VER-linux-$(node_arch).tar.xz"
if [[ "${ver}" == "18" ]]; then # make this version the default (latest LTS)
if [[ "${ver}" == "24" ]]; then # make this version the default (latest LTS)
sed "s|^PATH=|PATH=$NODEPATH/bin:|mg" -i /etc/environment
fi
export PATH="$NODEPATH/bin:$PATH"
+2 -2
View File
@@ -20,8 +20,8 @@ echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' | tee
printf "\n\t🐋 Installed NVM 🐋\t\n"
nvm --version
# node 16 and 18 are already installed in act-*
versions=("20")
versions=("")
JSON=$(wget -qO- https://nodejs.org/download/release/index.json | jq --compact-output)
for V in "${versions[@]}"; do