mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
ci(workflows): 更新自动i18n工作流以使用yarn
将依赖管理从npm切换到yarn,并添加corepack启用步骤
This commit is contained in:
parent
fe66b6c183
commit
5b92e64ce4
7
.github/workflows/auto-i18n.yml
vendored
7
.github/workflows/auto-i18n.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user