From ce8958c8470868049dc4c0bcbb809cd745fa76a1 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Tue, 9 Jul 2024 10:29:06 +0200 Subject: [PATCH] chore: update Node.js version to 16.10.0 or >=18.0.0 in package.json (#74) --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- package.json | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af12c7a..c7f578c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - run: corepack enable - uses: actions/setup-node@v4 with: - node-version: 16 + node-version-file: package.json cache: 'pnpm' - run: pnpm install - run: pnpm lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e8b332..dbdc712 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: - run: corepack enable - uses: actions/setup-node@v4 with: - node-version: 16 + node-version-file: package.json cache: 'pnpm' - name: Install dependencies run: pnpm install diff --git a/package.json b/package.json index 0d688e1..def08dc 100644 --- a/package.json +++ b/package.json @@ -56,5 +56,8 @@ "unbuild": "^2.0.0", "vitest": "^1.4.0" }, - "packageManager": "pnpm@8.15.6" + "packageManager": "pnpm@8.15.6", + "engines": { + "node": "^16.10.0 || >=18.0.0" + } }