From f4010f56f6fe3407183014f12a8dae3ed4859af9 Mon Sep 17 00:00:00 2001 From: snowtafir Date: Sat, 11 Jan 2025 18:22:39 +0800 Subject: [PATCH] githubAction: update nodejs version to 22 --- .github/workflows/build-deploy.yaml | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml index 1fab784..5609b05 100644 --- a/.github/workflows/build-deploy.yaml +++ b/.github/workflows/build-deploy.yaml @@ -19,7 +19,7 @@ jobs: - name: 🏗️ 安装 Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - name: 📦 安装 yarn run: npm install -g yarn diff --git a/package.json b/package.json index 3dd6979..e91ee9e 100644 --- a/package.json +++ b/package.json @@ -81,5 +81,8 @@ "tsx": "4.19.2", "yaml": "^2.6.1", "yunzaijs": "^1.0.0-rc.5" + }, + "engines": { + "node": ">=20" } }