ci(workflow): 优化自动翻译工作流的依赖安装步骤

修改依赖安装命令,使用更精确的参数避免不必要的锁定文件生成,并确保安装开发依赖
This commit is contained in:
icarus 2025-09-04 18:37:23 +08:00
parent 5b92e64ce4
commit fc1aa48375

View File

@ -32,8 +32,10 @@ jobs:
- name: 📦 Enable Yarn Corepack
run: corepack enable
- name: 📦 Dependencies
run: yarn add openai cli-progress tsx
- name: 📦 Install only required dependencies
run: |
yarn config set nodeLinker node-modules
yarn add --production=false --no-lockfile openai cli-progress tsx
- name: 🏃‍♀️ Translate
run: tsx scripts/update-i18n.ts