更新 .drone.yml
This commit is contained in:
parent
f5bccbee69
commit
89457aab29
13
.drone.yml
13
.drone.yml
|
|
@ -10,18 +10,6 @@ volumes:
|
|||
path: /var/lib/drone/vuepress_output
|
||||
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
image: node:20.16.0
|
||||
volumes:
|
||||
- name: node_modules
|
||||
path: /drone/src/node_modules
|
||||
commands:
|
||||
- pwd
|
||||
- ls -alt
|
||||
- npm config set registry https://registry.npmjs.org/ # 切换到官方 npm 镜像源
|
||||
- npm cache clean --force # 清理缓存
|
||||
- npm install
|
||||
|
||||
- name: build-vuepress
|
||||
image: node:20.16.0
|
||||
volumes:
|
||||
|
|
@ -31,5 +19,4 @@ steps:
|
|||
path: /drone/src/docs/.vuepress/dist
|
||||
commands:
|
||||
- cd /drone/src
|
||||
- npm install -g vuepress
|
||||
- npm run docs:build # 修改为你的构建脚本
|
||||
|
|
|
|||
Loading…
Reference in New Issue