From d678f14549f75721aa5c85dea3fd8c9fc428e110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Sat, 23 May 2026 14:13:27 +0800 Subject: [PATCH] ci(release): fix typecheck command and add missing WXT prepare steps - Replace non-existent pm run compile with correct pm run typecheck - Add px wxt prepare before typecheck and test steps (aligned with ci.yml) - Update AGENTS.md to remove fixed issue note --- .github/workflows/release.yml | 9 ++++++++- AGENTS.md | 3 --- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8707676..df1693e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,8 +71,11 @@ jobs: with: path: node_modules key: ${{ runner.os }}-release-v22-${{ hashFiles('**/package-lock.json') }} + - name: Generate WXT types + run: npx wxt prepare + - name: Run TypeScript type check - run: npm run compile + run: npm run typecheck test: name: Unit Tests @@ -90,6 +93,10 @@ jobs: with: path: node_modules key: ${{ runner.os }}-release-v22-${{ hashFiles('**/package-lock.json') }} + + - name: Generate WXT types + run: npx wxt prepare + - name: Run tests run: npm run test diff --git a/AGENTS.md b/AGENTS.md index ac91798..d2f240d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,9 +31,6 @@ Pre-commit hook (`.husky/pre-commit` 调用 `lint-staged`): 提交前确保 `lint` 和 `typecheck` 通过。 -> **注意**: Release 工作流 (`.github/workflows/release.yml`) 存在脚本名错误,typecheck 步骤使用了不存在的 -> `npm run compile`,正确命令应为 `npm run typecheck`。 - ## WXT 生成文件 - `.wxt/` 目录由 `postinstall` 自动执行 `wxt prepare` 生成,包含 TypeScript 类型声明和扩展的 tsconfig。