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。