ci: add wxt prepare step to generate .wxt types for typecheck and tests

This commit is contained in:
Ubuntu
2026-05-22 23:59:56 +08:00
parent 5e23b29a25
commit 364672918d
+9
View File
@@ -90,6 +90,9 @@ jobs:
path: node_modules
key: ${{ runner.os }}-node-v22-${{ hashFiles('**/package-lock.json') }}
- name: Generate WXT types
run: npx wxt prepare
- name: Run TypeScript type check
run: npm run typecheck
@@ -113,6 +116,9 @@ jobs:
path: node_modules
key: ${{ runner.os }}-node-v22-${{ hashFiles('**/package-lock.json') }}
- name: Generate WXT types
run: npx wxt prepare
- name: Run tests
run: npm run test
@@ -144,6 +150,9 @@ jobs:
key: ${{ runner.os }}-node-v22-${{ hashFiles('**/package-lock.json') }}
# 💡 动态代理编译指令:完美匹配 WXT / 各类多端打包器的标准构建命令
- name: Generate WXT types
run: npx wxt prepare
- name: Build Extension (${{ matrix.browser }})
run: |
if npm run | grep -q "build:${{ matrix.browser }}"; then