From d7bd2ee6675ceadda1f4a52a6f408eefb5f912d6 Mon Sep 17 00:00:00 2001 From: bichangxiong <3057647414@qq.com> Date: Thu, 28 Aug 2025 16:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/master.ym?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/master.yml b/.gitea/workflows/master.yml index ac405d9..c59e069 100644 --- a/.gitea/workflows/master.yml +++ b/.gitea/workflows/master.yml @@ -18,6 +18,14 @@ jobs: # name: 打包 Uniapp 项目 # runs-on: windows # 云 Runner 环境(自建 Runner 可替换为自定义名称) steps: + ######################################################################## + # 步骤 2:安装 Node.js 环境(Uniapp 依赖 Node 处理项目依赖) + ######################################################################## + - name: 2. 安装 Node.js + uses: http://git.missmoc.top/mocheng/setup-node@v3 + with: + node-version: '18.x' # 推荐 16.x+,适配 Uniapp 依赖 + cache: 'npm' # 缓存 npm 依赖,加速后续构建 ######################################################################## # 步骤 1:检出 Gitea 代码 ######################################################################## @@ -26,14 +34,7 @@ jobs: with: fetch-depth: 1 # 仅拉取最新代码,加速流程 - ######################################################################## - # 步骤 2:安装 Node.js 环境(Uniapp 依赖 Node 处理项目依赖) - ######################################################################## - - name: 2. 安装 Node.js - uses: http://git.missmoc.top/mocheng/setup-node@v3 - with: - node-version: '18.x' # 推荐 16.x+,适配 Uniapp 依赖 - cache: 'npm' # 缓存 npm 依赖,加速后续构建 + ######################################################################## # 步骤 3:安装 Uniapp 项目依赖