Skip to content

Commit 00c58a2

Browse files
committed
build: fix CI build failure by ignoring scripts during npm ci
(cherry picked from commit 345d2f9)
1 parent ea2b959 commit 00c58a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ jobs:
4545
- name: 🔧 Setup Node.js
4646
uses: actions/setup-node@v4
4747
with:
48-
node-version: '20'
48+
node-version: '20.19.3'
4949
cache: 'npm'
5050

51-
# 3. 安装依赖
51+
# 3. 安装依赖 (使用 --ignore-scripts 避免在安装阶段触发构建脚本)
5252
- name: 📦 Install dependencies
53-
run: npm install
53+
run: npm ci --ignore-scripts
5454

5555
# 4. 获取并同步版本号
5656
- name: 📌 Get and Sync version

0 commit comments

Comments
 (0)