From 0f9e2c7c274af591b433fe7705d37d05ce951ba7 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 20 May 2024 22:16:03 +0200 Subject: [PATCH] [BUGFIX] Specify the Node.js version for GitHub Actions (#1318) Also make the required Node.js and NPM versions in `package.json` more specific. --- .github/workflows/ci.yml | 4 ++++ package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42dacd4..1b509f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,6 +92,10 @@ jobs: steps: - name: "Checkout" uses: actions/checkout@v4 + - name: "Set up Node.js" + uses: actions/setup-node@v4 + with: + node-version: "18.20.2" - name: "Install modules" run: | npm ci diff --git a/package.json b/package.json index 9dface4..96b1ab3 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "version": "1.0.0", "license": "ISC", "engines": { - "node": ">=18.19.0 <19.0.0", - "npm": ">=10.0.0" + "node": "^18.20.0", + "npm": "^10.5.0" }, "scripts": { "lint:js": "eslint 'Resources/Public/**/*.js'",