ci(workflow): 将 npm 安装改为 yarn 全局安装依赖以简化命令

This commit is contained in:
icarus 2025-09-04 18:51:35 +08:00
parent 7f64268259
commit 9eca21fb6a

View File

@ -29,11 +29,11 @@ jobs:
with:
node-version: 20
- name: 📦 Install only required dependencies
run: npm install --no-package-lock --no-save openai@^5.12.2 cli-progress@^3.12.0 tsx@^4.20.3
- name: 📦 Install global dependencies
run: yarn global add openai@^5.12.2 cli-progress@^3.12.0 tsx@^4.20.3
- name: 🏃‍♀️ Translate
run: ./node_modules/.bin/tsx scripts/update-i18n.ts
run: tsx scripts/update-i18n.ts
- name: 🔄 Commit changes
run: |