build(.drone.yml): 将 pnpm 替换为 npm
Some checks failed
continuous-integration/drone/push Build is failing
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:
parent
f978a42041
commit
0517acb025
@ -38,16 +38,16 @@ steps:
|
|||||||
path: /drone/src/node_modules
|
path: /drone/src/node_modules
|
||||||
commands:
|
commands:
|
||||||
# 构建项目
|
# 构建项目
|
||||||
- pnpm run build
|
- npm run build
|
||||||
# 运行测试
|
# 运行测试
|
||||||
- pnpm test
|
- npm test
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
depends_on: [build]
|
depends_on: [build]
|
||||||
commands:
|
commands:
|
||||||
# 启动服务
|
# 启动服务
|
||||||
- pnpm start
|
- npm start
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
PORT: 8001
|
PORT: 8001
|
||||||
|
Loading…
Reference in New Issue
Block a user