ci(workflows): 更新自动i18n工作流以使用yarn

将依赖管理从npm切换到yarn,并添加corepack启用步骤
This commit is contained in:
icarus 2025-09-04 18:35:11 +08:00
parent fe66b6c183
commit 5b92e64ce4

View File

@ -24,13 +24,16 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: 📦 Setting Node.js
- name: 📦 Setting Node.js and Yarn
uses: actions/setup-node@v4
with:
node-version: 20
- name: 📦 Enable Yarn Corepack
run: corepack enable
- name: 📦 Dependencies
run: npm install openai cli-progress tsx
run: yarn add openai cli-progress tsx
- name: 🏃‍♀️ Translate
run: tsx scripts/update-i18n.ts