Install pnpm globally in build and release workflows

Added 'npm i -g pnpm' to both build and release GitHub Actions workflows to ensure pnpm is available before running installation and build commands.
This commit is contained in:
手瓜一十雪
2025-11-13 15:42:05 +08:00
parent ed19c52f25
commit 6bec765fb1
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ jobs:
node-version: 20.x
- name: Build NapCat.Framework
run: |
npm i -g pnpm
pnpm i
pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run build:framework
@@ -39,6 +40,7 @@ jobs:
node-version: 20.x
- name: Build NapCat.Shell
run: |
npm i -g pnpm
pnpm i
pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run build:shell