@ -36,13 +36,14 @@ steps:
image: node:14.12.0
volumes:
- name: node-cache
path: ./node_modules
path: /node_modules
- name: node-build
path: /app/build
commands:
- echo 'node package start'
# 打包
- npm config set registry https://registry.npm.taobao.org -g
- npm config set cache /node_modules --global
- npm install
- npm run build
# 拷贝打包结果到宿主机