Merge pull request 'test : ci/cd1' (#1057) from master into prod
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/1057
This commit is contained in:
@@ -8,7 +8,7 @@ steps:
|
|||||||
|
|
||||||
|
|
||||||
- name: build-package
|
- name: build-package
|
||||||
image: node:16.20.0
|
image: node:18.20.0
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /drone/src/node_modules
|
path: /drone/src/node_modules
|
||||||
@@ -23,6 +23,7 @@ steps:
|
|||||||
- cp docker.sh /app/build/$DRONE_REPO_NAME/
|
- cp docker.sh /app/build/$DRONE_REPO_NAME/
|
||||||
- cp nginx.conf /app/build/$DRONE_REPO_NAME/
|
- cp nginx.conf /app/build/$DRONE_REPO_NAME/
|
||||||
- npm -v
|
- npm -v
|
||||||
|
- npm install -g npm@11.4.2
|
||||||
- mkdir -p ./node_modules
|
- mkdir -p ./node_modules
|
||||||
- export NODE_MODULES_PATH=`pwd`/node_modules
|
- export NODE_MODULES_PATH=`pwd`/node_modules
|
||||||
- npm config set registry https://registry.npmmirror.com
|
- npm config set registry https://registry.npmmirror.com
|
||||||
|
|||||||
Reference in New Issue
Block a user