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 4360775eff
commit 55f21c6caa
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ jobs:
node-version: 20.x node-version: 20.x
- name: Build NapCat.Framework - name: Build NapCat.Framework
run: | run: |
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 build:framework pnpm run build:framework
@ -40,6 +41,7 @@ jobs:
node-version: 20.x node-version: 20.x
- name: Build NapCat.Shell - name: Build NapCat.Shell
run: | run: |
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 build:shell pnpm run build:shell

View File

@ -17,6 +17,7 @@ jobs:
node-version: 20.x node-version: 20.x
- name: Build NapCat.Framework - name: Build NapCat.Framework
run: | run: |
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 build:framework pnpm run build:framework
@ -39,6 +40,7 @@ jobs:
node-version: 20.x node-version: 20.x
- name: Build NapCat.Shell - name: Build NapCat.Shell
run: | run: |
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 build:shell pnpm run build:shell