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:
@@ -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
|
||||
|
||||
|
||||
@@ -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。
|
||||
|
||||
Reference in New Issue
Block a user