|
|
@ -33,7 +33,7 @@ volumes: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
# node install |
|
|
|
# node install |
|
|
|
- name: node-package |
|
|
|
- name: node-package |
|
|
|
image: niushuai233/node-cnpm:18.12.1 |
|
|
|
image: niushuai233/node-cnpm:16.17.1 |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- name: node-cache |
|
|
|
- name: node-cache |
|
|
|
path: /node_cache |
|
|
|
path: /node_cache |
|
|
@ -41,9 +41,7 @@ steps: |
|
|
|
path: /drone/src/node_modules |
|
|
|
path: /drone/src/node_modules |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- echo 'node package start' |
|
|
|
- echo 'node package start' |
|
|
|
- pwd |
|
|
|
|
|
|
|
- ls -alh |
|
|
|
- ls -alh |
|
|
|
- ls -alh node_modules |
|
|
|
|
|
|
|
# 打包 |
|
|
|
# 打包 |
|
|
|
- npm config set registry https://registry.npm.taobao.org |
|
|
|
- npm config set registry https://registry.npm.taobao.org |
|
|
|
- npm config set cache /node_cache --global |
|
|
|
- npm config set cache /node_cache --global |
|
|
|