Add type checking to build workflow

Incorporates 'pnpm run typecheck' into the build steps for both frontend and shell jobs to ensure type safety during CI builds.
This commit is contained in:
手瓜一十雪 2025-11-15 14:01:11 +08:00
parent b147e57c1c
commit c0b9817ff5

View File

@ -21,6 +21,7 @@ jobs:
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i
pnpm run typecheck || exit 1
pnpm --filter napcat-webui-frontend run build || exit 1 pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run build:framework pnpm run build:framework
mv packages/napcat-framework/dist framework-dist mv packages/napcat-framework/dist framework-dist
@ -46,6 +47,7 @@ jobs:
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i
pnpm --filter napcat-webui-frontend run build || exit 1 pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run typecheck || exit 1
pnpm run build:shell pnpm run build:shell
mv packages/napcat-shell/dist shell-dist mv packages/napcat-shell/dist shell-dist
cd shell-dist cd shell-dist