mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 14:29:15 +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:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
|
||||||
- name: 📦 Setting Node.js
|
- name: 📦 Setting Node.js and Yarn
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
||||||
|
- name: 📦 Enable Yarn Corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
- name: 📦 Dependencies
|
- name: 📦 Dependencies
|
||||||
run: npm install openai cli-progress tsx
|
run: yarn add openai cli-progress tsx
|
||||||
|
|
||||||
- name: 🏃♀️ Translate
|
- name: 🏃♀️ Translate
|
||||||
run: tsx scripts/update-i18n.ts
|
run: tsx scripts/update-i18n.ts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user