Skip to content

Commit 9bf5e40

Browse files
authored
fix: update nodejs
1 parent c7f3bf0 commit 9bf5e40

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
IMAGE_LABEL_REPO: ${{ github.repository }}
2323
SLUG: ${{ github.repository_owner }}/ubuntu
2424
DISTRO: ubuntu
25-
NODE: '16 18 20'
25+
NODE: '20 24'
2626
BUILD_REF: ${{ github.sha }}
2727
SKIP_TEST: false
2828
PUSH_GHCR: ${{ github.repository == (github.event.pull_request.head.repo.full_name || github.repository) && '1' || '' }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- `ghcr.io/catthehacker/ubuntu:runner-22.04`
3434
- `ghcr.io/catthehacker/ubuntu:runner-24.04`
3535
- `ghcr.io/catthehacker/ubuntu:runner-latest`
36-
- [`/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.)
36+
- [`/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.)
3737
- `ghcr.io/catthehacker/ubuntu:js-22.04`
3838
- `ghcr.io/catthehacker/ubuntu:js-24.04`
3939
- `ghcr.io/catthehacker/ubuntu:js-latest`

linux/ubuntu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARG FROM_TAG
1111

1212
# > Our custom ARGs
1313
# latest Node.js LTS versions
14-
ARG NODE_VERSION="16 18"
14+
ARG NODE_VERSION="20 24"
1515
ARG DISTRO=ubuntu
1616
ARG TYPE=act
1717
ARG RUNNER

linux/ubuntu/scripts/act.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ for ver in "${NODE[@]}"; do
130130
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"
131131
tar -Jxf "node-$VER-linux-$(node_arch).tar.xz" --strip-components=1 -C "$NODEPATH"
132132
rm "node-$VER-linux-$(node_arch).tar.xz"
133-
if [[ "${ver}" == "18" ]]; then # make this version the default (latest LTS)
133+
if [[ "${ver}" == "24" ]]; then # make this version the default (latest LTS)
134134
sed "s|^PATH=|PATH=$NODEPATH/bin:|mg" -i /etc/environment
135135
fi
136136
export PATH="$NODEPATH/bin:$PATH"

linux/ubuntu/scripts/js.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' | tee
2020
printf "\n\t🐋 Installed NVM 🐋\t\n"
2121
nvm --version
2222

23-
# node 16 and 18 are already installed in act-*
24-
versions=("20")
23+
24+
versions=("")
2525
JSON=$(wget -qO- https://nodejs.org/download/release/index.json | jq --compact-output)
2626

2727
for V in "${versions[@]}"; do

0 commit comments

Comments
 (0)