Update pnpm install to use --no-frozen-lockfile

Replaces 'pnpm i' with 'pnpm i --no-frozen-lockfile' in build and release GitHub workflows to allow installation even if lockfile changes are detected. This helps prevent CI failures due to lockfile mismatches.
This commit is contained in:
手瓜一十雪 2026-01-15 11:15:38 +08:00
parent 808165b008
commit d0d3934869
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ jobs:
NAPCAT_VERSION: ${{ env.NAPCAT_VERSION }} NAPCAT_VERSION: ${{ env.NAPCAT_VERSION }}
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i --no-frozen-lockfile
pnpm run typecheck || exit 1 pnpm run typecheck || exit 1
pnpm test || exit 1 pnpm test || exit 1
pnpm --filter napcat-webui-frontend run build || exit 1 pnpm --filter napcat-webui-frontend run build || exit 1
@ -78,7 +78,7 @@ jobs:
NAPCAT_VERSION: ${{ env.NAPCAT_VERSION }} NAPCAT_VERSION: ${{ env.NAPCAT_VERSION }}
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i --no-frozen-lockfile
pnpm run typecheck || exit 1 pnpm run typecheck || exit 1
pnpm test || exit 1 pnpm test || exit 1
pnpm --filter napcat-webui-frontend run build || exit 1 pnpm --filter napcat-webui-frontend run build || exit 1

View File

@ -59,7 +59,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i --no-frozen-lockfile
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
@ -88,7 +88,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i --no-frozen-lockfile
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
mv packages/napcat-shell/dist shell-dist mv packages/napcat-shell/dist shell-dist