From c9cc1fa089ea1f29bfeca7ff5a1fbc1124cba298 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 27 Aug 2025 01:30:36 -0700 Subject: [PATCH] chore: define node version constraints (#2703) `>=20.18.1` is required for `npm i && npm run build && npm run start` to succeed. `npm run raw` would require `>=22.7.0`. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2703 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29b60ea1..ff9785bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v4.0.2 with: - node-version: ">=20.6.0" + node-version: ">=20.18.1" - run: npm ci - run: cp config-vanilla.json config.json - run: npm run verify diff --git a/package.json b/package.json index 0e55719c..02946d3b 100644 --- a/package.json +++ b/package.json @@ -57,5 +57,8 @@ "eslint-plugin-prettier": "^5.2.5", "prettier": "^3.5.3", "tree-kill": "^1.2.2" + }, + "engines": { + "node": ">=20.18.1" } }