From fec50e2e204459929078020522f55692a8a4d74a Mon Sep 17 00:00:00 2001 From: Stian Date: Wed, 4 Sep 2024 09:17:23 +0200 Subject: [PATCH] Use Node 20 --- .github/workflows/checkout-and-build.yml | 3 ++- .github/workflows/lint-js-css.yml | 5 +++-- .nvmrc | 2 +- package.json | 5 ++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checkout-and-build.yml b/.github/workflows/checkout-and-build.yml index 764a339..f896801 100644 --- a/.github/workflows/checkout-and-build.yml +++ b/.github/workflows/checkout-and-build.yml @@ -74,9 +74,10 @@ jobs: echo "vendor/bin" >> $GITHUB_PATH - name: Setup Node.js environment - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: 'package.json' + check-latest: true cache: npm - name: Install Dependencies diff --git a/.github/workflows/lint-js-css.yml b/.github/workflows/lint-js-css.yml index cb60ed1..f90d93e 100644 --- a/.github/workflows/lint-js-css.yml +++ b/.github/workflows/lint-js-css.yml @@ -25,10 +25,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Setup node.js - uses: actions/setup-node@v3 + - name: Setup Node.js environment + uses: actions/setup-node@v4 with: node-version-file: 'package.json' + check-latest: true cache: npm - name: Install Dependencies diff --git a/.nvmrc b/.nvmrc index 25bf17f..2edeafb 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 \ No newline at end of file +20 \ No newline at end of file diff --git a/package.json b/package.json index 8ffd892..1f0c559 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,8 @@ "name": "@dekode/project-base", "private": true, "engines": { - "node": "18", - "npm": ">=8", - "yarn": "Please use npm" + "node": "20", + "npm": ">=10" }, "packageManager": "npm@10.7.0", "workspaces": [