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
This commit is contained in:
雨霖铃
2026-05-23 14:13:27 +08:00
parent 8ec36ac3b3
commit d678f14549
2 changed files with 8 additions and 4 deletions
+8 -1
View File
@@ -71,8 +71,11 @@ jobs:
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-release-v22-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-release-v22-${{ hashFiles('**/package-lock.json') }}
- name: Generate WXT types
run: npx wxt prepare
- name: Run TypeScript type check - name: Run TypeScript type check
run: npm run compile run: npm run typecheck
test: test:
name: Unit Tests name: Unit Tests
@@ -90,6 +93,10 @@ jobs:
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-release-v22-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-release-v22-${{ hashFiles('**/package-lock.json') }}
- name: Generate WXT types
run: npx wxt prepare
- name: Run tests - name: Run tests
run: npm run test run: npm run test
-3
View File
@@ -31,9 +31,6 @@ Pre-commit hook (`.husky/pre-commit` 调用 `lint-staged`):
提交前确保 `lint``typecheck` 通过。 提交前确保 `lint``typecheck` 通过。
> **注意**: Release 工作流 (`.github/workflows/release.yml`) 存在脚本名错误,typecheck 步骤使用了不存在的
> `npm run compile`,正确命令应为 `npm run typecheck`。
## WXT 生成文件 ## WXT 生成文件
- `.wxt/` 目录由 `postinstall` 自动执行 `wxt prepare` 生成,包含 TypeScript 类型声明和扩展的 tsconfig。 - `.wxt/` 目录由 `postinstall` 自动执行 `wxt prepare` 生成,包含 TypeScript 类型声明和扩展的 tsconfig。