From 52863a8f870db3152a499b17a576c96b95beed59 Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 18:42:40 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E4=BC=98=E5=8C=96=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4=E4=BB=A5=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E6=9E=84=E5=BB=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将直接使用yarn安装依赖改为在临时目录中通过npm安装,避免全局安装影响 --- .github/workflows/auto-i18n.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index f483bf4503..8b4e656ee3 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -34,8 +34,12 @@ jobs: - name: 📦 Install only required dependencies run: | - yarn config set nodeLinker node-modules - yarn add --mode=skip-build openai cli-progress tsx + 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 . - name: 🏃‍♀️ Translate run: yarn run tsx scripts/update-i18n.ts