From 046506b3788ad3559dceb10aa2a47e61b5e4059f Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 18:49:04 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E7=AE=80=E5=8C=96=E8=87=AA?= =?UTF-8?q?=E5=8A=A8i18n=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=9A=84=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除不必要的corepack启用步骤,直接使用npm安装所需依赖 --- .github/workflows/auto-i18n.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index 778f894457..336cd97758 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -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: |