fix: 添加 Node.js 设置步骤以解决 PATH 问题
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 3m28s
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 3m28s
This commit is contained in:
@@ -5,6 +5,12 @@ jobs:
|
|||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
|
# --- 新增的关键步骤 ---
|
||||||
|
- name: 为 Gitea Actions 设置 Node.js 环境
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20' # 选择一个稳定的 LTS 版本,如 18 或 20
|
||||||
|
cache: 'npm' # 可选:缓存依赖以加速后续运行
|
||||||
# 步骤1:获取最新的代码
|
# 步骤1:获取最新的代码
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
Reference in New Issue
Block a user