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
@@ -22,7 +22,7 @@ env:
IMAGE_LABEL_REPO: ${{ github.repository }}
SLUG: ${{ github.repository_owner }}/ubuntu
DISTRO: ubuntu
NODE: '16 18 20'
NODE: '20 24'
BUILD_REF: ${{ github.sha }}
SKIP_TEST: false
PUSH_GHCR: ${{ github.repository == (github.event.pull_request.head.repo.full_name || github.repository) && '1' || '' }}
+1 -1
View File
@@ -33,7 +33,7 @@
- `ghcr.io/catthehacker/ubuntu:runner-22.04`
- `ghcr.io/catthehacker/ubuntu:runner-24.04`
- `ghcr.io/catthehacker/ubuntu:runner-latest`
- [`/linux/ubuntu/js`](./linux/ubuntu/scripts/js.sh) - `ghcr.io/catthehacker/ubuntu:act-*` but with `js` tools installed (`yarn`, `nvm`, `node` v16/v18, `pnpm`, `grunt`, etc.)
- [`/linux/ubuntu/js`](./linux/ubuntu/scripts/js.sh) - `ghcr.io/catthehacker/ubuntu:act-*` but with `js` tools installed (`yarn`, `nvm`, `node` v20/v24, `pnpm`, `grunt`, etc.)
- `ghcr.io/catthehacker/ubuntu:js-22.04`
- `ghcr.io/catthehacker/ubuntu:js-24.04`
- `ghcr.io/catthehacker/ubuntu:js-latest`
+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