From 6cbac1dd81ca2e4458eab31c5731a72fa71bb3bb Mon Sep 17 00:00:00 2001 From: Jack Lu Date: Thu, 12 Jan 2023 21:13:51 +0800 Subject: [PATCH] require node >=14.17, due to dependency on child_process spawn event --- .github/workflows/test.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2377a32..071aca9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [8.6, node] + node-version: [14.17, node] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -26,5 +26,5 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: '[[ $(node --version) == v8.6* ]] && npm i || npm ci' + - run: npm ci - run: npm test diff --git a/package.json b/package.json index 4261921..064127a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "express-site", "version": "0.0.0", "description": "A host for node/express web applications, with a RESTful admin API.", - "engines": { "node": ">=8.6" }, + "engines": { "node": ">=14.17" }, "dependencies": { "express": "^4.16.4", "http-proxy": "^1.17.0",