diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 82f52d6..4ce3cdd 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -22,7 +22,7 @@ env: IMAGE_LABEL_REPO: ${{ github.repository }} SLUG: ${{ github.repository_owner }}/ubuntu DISTRO: ubuntu - NODE: '16 18 20' + NODE: '16 18 20 22 24' # 24 is the default BUILD_REF: ${{ github.sha }} SKIP_TEST: false PUSH_GHCR: ${{ github.repository == (github.event.pull_request.head.repo.full_name || github.repository) && '1' || '' }} diff --git a/linux/ubuntu/Dockerfile b/linux/ubuntu/Dockerfile index 2b18a7a..b31f30f 100644 --- a/linux/ubuntu/Dockerfile +++ b/linux/ubuntu/Dockerfile @@ -11,7 +11,7 @@ ARG FROM_TAG # > Our custom ARGs # latest Node.js LTS versions -ARG NODE_VERSION="16 18" +ARG NODE_VERSION="16 18 20 22" # v24 is installed in js.sh ARG DISTRO=ubuntu ARG TYPE=act ARG RUNNER diff --git a/linux/ubuntu/scripts/js.sh b/linux/ubuntu/scripts/js.sh index e29a911..ed8107d 100755 --- a/linux/ubuntu/scripts/js.sh +++ b/linux/ubuntu/scripts/js.sh @@ -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") +# node 16, 18, 20 and 22 are already installed in act-* +versions=("24") JSON=$(wget -qO- https://nodejs.org/download/release/index.json | jq --compact-output) for V in "${versions[@]}"; do