From fc1aa48375014aa7cca15e8859337dba1b6eb62c Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 18:37:23 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E4=BC=98=E5=8C=96=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E7=BF=BB=E8=AF=91=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=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 修改依赖安装命令,使用更精确的参数避免不必要的锁定文件生成,并确保安装开发依赖 --- .github/workflows/auto-i18n.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index b339daa0f..b561de9d7 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -32,8 +32,10 @@ jobs: - name: 📦 Enable Yarn Corepack run: corepack enable - - name: 📦 Dependencies - run: yarn add openai cli-progress tsx + - name: 📦 Install only required dependencies + run: | + yarn config set nodeLinker node-modules + yarn add --production=false --no-lockfile openai cli-progress tsx - name: 🏃‍♀️ Translate run: tsx scripts/update-i18n.ts