From 1a8b5f4977e89641527e4def1ea66b37eb5fefaf Mon Sep 17 00:00:00 2001 From: chengww Date: Mon, 18 May 2026 00:07:05 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8A=A0=20setup-bun=20=E8=AE=A9=20lint:?= =?UTF-8?q?i18n=20=E6=AD=A5=E9=AA=A4=E8=83=BD=E8=B7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit package.json 里 lint:i18n = "bun scripts/check_i18n.ts",但 pr-check.yml 只装了 Node 没装 bun,I18n check 步骤报 sh: bun: not found。 之前这个错误被前两步(lint / typecheck)的失败遮住,前两步修了之后才暴露。 用官方 oven-sh/setup-bun 一步搞定,放在 setup-node 之后、install 之前。 --- .github/workflows/pr-check.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index cc82c98..af15af6 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -58,6 +58,11 @@ jobs: with: node-version: 24 + # lint:i18n 脚本用 bun 跑(package.json: "bun scripts/check_i18n.ts"), + # CI 默认环境没有 bun 会报 sh: bun: not found + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + - name: Install dependencies run: npm install