From 808747093edde14c5e1773246232d87d522408e3 Mon Sep 17 00:00:00 2001 From: Leon Linhart Date: Thu, 31 Oct 2024 09:36:19 +0100 Subject: [PATCH] build: ensure Node 20 is used --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 3 ++- package.json | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9eefaa..67c3d7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version-file: "package.json" cache: "yarn" - name: Yarn build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1c6e5a8..2eaa66a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,8 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version-file: "package.json" + cache: "yarn" - name: Yarn build run: yarn build diff --git a/package.json b/package.json index 309b802..9fdaa9d 100644 --- a/package.json +++ b/package.json @@ -24,12 +24,12 @@ "@actions/github": "^6.0.0" }, "devDependencies": { - "@types/node": "^22.0.0", + "@types/node": "^20.17.4", "@vercel/ncc": "^0.38.1", "typescript": "^5.6.2" }, "engines": { - "node": ">= 20" + "node": "20" }, "packageManager": "yarn@4.5.1" }