From 4429c41275d32a75af9b231606a6279fd1672a65 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 5 Dec 2025 15:28:10 -0600 Subject: [PATCH] Align supported Node.js engines field with dependency requirements (#231) --- .github/workflows/buildtest.yml | 14 +++++++++----- .github/workflows/release.yml | 2 +- expressions/package.json | 2 +- languageserver/package.json | 2 +- languageservice/package.json | 2 +- workflow-parser/package.json | 2 +- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index b55b48e..e78aafc 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -12,15 +12,19 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + steps: - uses: actions/checkout@v4 - - name: Use Node.js 16.15 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: 16.15 + node-version: ${{ matrix.node-version }} cache: 'npm' registry-url: 'https://npm.pkg.github.com' - - run: npm ci + - run: npm ci --engine-strict env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run format-check -ws @@ -33,10 +37,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Use Node.js 16.15 + - name: Use Node.js 22.x uses: actions/setup-node@v4 with: - node-version: 16.15 + node-version: 22.x cache: 'npm' registry-url: 'https://npm.pkg.github.com' - run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c67ae87..f331485 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,7 +69,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 22.x cache: "npm" scope: '@actions' diff --git a/expressions/package.json b/expressions/package.json index 79e29e2..d5c9c15 100755 --- a/expressions/package.json +++ b/expressions/package.json @@ -44,7 +44,7 @@ "watch": "tsc --build tsconfig.build.json --watch" }, "engines": { - "node": ">= 16.15" + "node": ">= 18" }, "files": [ "dist/**/*" diff --git a/languageserver/package.json b/languageserver/package.json index 478de93..afb206d 100644 --- a/languageserver/package.json +++ b/languageserver/package.json @@ -52,7 +52,7 @@ "yaml": "^2.1.3" }, "engines": { - "node": ">= 16.15" + "node": ">= 18" }, "files": [ "dist/**/*" diff --git a/languageservice/package.json b/languageservice/package.json index 913fb11..78eb7cd 100644 --- a/languageservice/package.json +++ b/languageservice/package.json @@ -55,7 +55,7 @@ "yaml": "^2.1.1" }, "engines": { - "node": ">= 16.15" + "node": ">= 18" }, "files": [ "dist/**/*" diff --git a/workflow-parser/package.json b/workflow-parser/package.json index f74f32b..b5e9451 100644 --- a/workflow-parser/package.json +++ b/workflow-parser/package.json @@ -53,7 +53,7 @@ "yaml": "^2.0.0-8" }, "engines": { - "node": ">= 16.15" + "node": ">= 18" }, "files": [ "dist/**/*"