From 4c6a3405574f5ccb26ea518d459f671bd1ba9f49 Mon Sep 17 00:00:00 2001 From: Federico Date: Mon, 10 Jun 2024 18:18:01 +0800 Subject: [PATCH] Node version --- .github/workflows/ci.yml | 18 +++++++++--------- package.json | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54338a2..70d7eae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,10 @@ jobs: Lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version-file: .nvmrc + node-version-file: package.json cache: npm - name: install run: npm ci || npm install @@ -24,10 +24,10 @@ jobs: Test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version-file: .nvmrc + node-version-file: package.json cache: npm - name: install run: npm ci || npm install @@ -38,10 +38,10 @@ jobs: Build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version-file: .nvmrc + node-version-file: package.json cache: npm - name: install run: npm ci || npm install diff --git a/package.json b/package.json index 6714443..193c03a 100644 --- a/package.json +++ b/package.json @@ -50,5 +50,8 @@ "typescript": "^5.4.5", "vitest": "^1.6.0", "xo": "^0.58.0" + }, + "engines": { + "node": ">=20" } }