From 28af7fd1096314a85aa5307a283713713286e522 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Mon, 17 Nov 2025 15:03:18 -0800 Subject: [PATCH] chore: update node on GitHub actions No change to logic. This adds Node v24 to GitHub Actions CI. This drops official support for Node v18 because it was marked end-of-life in March 2025. --- .github/workflows/main.yml | 2 +- README.md | 2 +- package.json | 2 +- scripts/check-node-support.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0834fcd..0129656 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,9 +10,9 @@ jobs: fail-fast: false matrix: node-version: - - 18 - 20 - 22 + - 24 os: - ubuntu-latest - macos-latest diff --git a/README.md b/README.md index f9a6c6a..435edd2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ commands, providing an easy solution for simple Unix-like, cross-platform commands in npm package scripts. -`shx` is proudly tested on every LTS node release since `v18`! +`shx` is proudly tested on every LTS node release since `v20`! ## Difference Between ShellJS and shx diff --git a/package.json b/package.json index f8b51f2..4395ef8 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,6 @@ "shelljs": "^0.10.0" }, "engines": { - "node": ">=18" + "node": ">=20" } } diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index a40e5ac..b823fbf 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -8,8 +8,8 @@ var yaml = require('js-yaml'); var shell = require('shelljs'); // This is the authoritative list of supported node versions. -var MIN_NODE_VERSION = 18; -var MAX_NODE_VERSION = 22; +var MIN_NODE_VERSION = 20; +var MAX_NODE_VERSION = 24; function checkReadme(minNodeVersion) { var start = '';