mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 13:31:32 +08:00
ci(workflow): 简化自动i18n工作流的依赖安装步骤
移除不必要的corepack启用步骤,直接使用npm安装所需依赖
This commit is contained in:
parent
8d5e15bb58
commit
046506b378
13
.github/workflows/auto-i18n.yml
vendored
13
.github/workflows/auto-i18n.yml
vendored
@ -29,20 +29,11 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: 📦 Enable Yarn Corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: 📦 Install only required dependencies
|
||||
run: |
|
||||
mkdir -p temp-deps
|
||||
cd temp-deps
|
||||
echo '{"dependencies": {"openai": "^5.12.2", "cli-progress": "^3.12.0", "tsx": "^4.20.3"}}' > package.json
|
||||
npm install --no-package-lock
|
||||
cd ..
|
||||
ln -sf temp-deps/node_modules .
|
||||
run: npm install --no-package-lock --no-save openai@^5.12.2 cli-progress@^3.12.0 tsx@^4.20.3
|
||||
|
||||
- name: 🏃♀️ Translate
|
||||
run: yarn run tsx scripts/update-i18n.ts
|
||||
run: ./node_modules/.bin/tsx scripts/update-i18n.ts
|
||||
|
||||
- name: 🔄 Commit changes
|
||||
run: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user