From 5b92e64ce4eda3be6378ef8e442f5f8dfb568ff7 Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 18:35:11 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflows):=20=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8i18n=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=BB=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8yarn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将依赖管理从npm切换到yarn,并添加corepack启用步骤 --- .github/workflows/auto-i18n.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index 5fdbf36cfc..b339daa0f5 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -24,13 +24,16 @@ jobs: with: ref: ${{ github.event.pull_request.head.ref }} - - name: 📦 Setting Node.js + - name: 📦 Setting Node.js and Yarn uses: actions/setup-node@v4 with: node-version: 20 + - name: 📦 Enable Yarn Corepack + run: corepack enable + - name: 📦 Dependencies - run: npm install openai cli-progress tsx + run: yarn add openai cli-progress tsx - name: 🏃‍♀️ Translate run: tsx scripts/update-i18n.ts