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 项目依赖