build(.drone.yml): 将 pnpm 替换为 npm
Some checks failed
continuous-integration/drone/push Build is failing

- 将构建项目的命令从 pnpm run build 改为 npm run build
- 将运行测试的命令从 pnpm test 改为 npm test
- 将启动服务的命令从 pnpm start 改为 npm start

这些更改统一了构建和部署过程中使用的包管理工具,简化了流程并提高了可维护性。
This commit is contained in:
lixin 2025-01-21 11:54:10 +08:00
parent f978a42041
commit 0517acb025

View File

@ -38,16 +38,16 @@ steps:
path: /drone/src/node_modules
commands:
# 构建项目
- pnpm run build
- npm run build
# 运行测试
- pnpm test
- npm test
- name: deploy
image: node:22-alpine
depends_on: [build]
commands:
# 启动服务
- pnpm start
- npm start
environment:
NODE_ENV: production
PORT: 8001