Switch build and release workflows to npm install

Replaces pnpm install with npm install --omit=dev in both framework and shell build steps for build and release workflows. Removes package-lock.json after installation to avoid including it in artifacts.
This commit is contained in:
手瓜一十雪 2025-11-13 15:57:05 +08:00
parent ded921c55e
commit e1743ae5e4
2 changed files with 8 additions and 4 deletions

View File

@ -25,7 +25,8 @@ jobs:
pnpm run build:framework
mv packages/napcat-framework/dist framework-dist
cd framework-dist
pnpm install --prod --shamefully-hoist
npm install --omit=dev
rm ./package-lock.json || exit 0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
@ -48,7 +49,8 @@ jobs:
pnpm run build:shell
mv packages/napcat-shell/dist shell-dist
cd shell-dist
pnpm install --prod --shamefully-hoist
npm install --omit=dev
rm ./package-lock.json || exit 0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:

View File

@ -23,7 +23,8 @@ jobs:
pnpm run build:framework
mv packages/napcat-framework/dist framework-dist
cd framework-dist
pnpm install --prod --shamefully-hoist
npm install --omit=dev
rm ./package-lock.json || exit 0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
@ -47,7 +48,8 @@ jobs:
pnpm run build:shell
mv packages/napcat-shell/dist shell-dist
cd shell-dist
pnpm install --prod --shamefully-hoist
npm install --omit=dev
rm ./package-lock.json || exit 0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with: