更新 .drone.yml

This commit is contained in:
zhangkaihuai
2024-09-15 10:11:26 +00:00
parent ca6261ab57
commit b4f3f7d108

View File

@@ -19,10 +19,12 @@ steps:
- cp nginx.conf /app/build/$DRONE_REPO_NAME/ - cp nginx.conf /app/build/$DRONE_REPO_NAME/
- npm -v - npm -v
- mkdir -p ./node_modules - mkdir -p ./node_modules
- ls
- 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
- set NODE_OPTIONS=--openssl-legacy-provider - set NODE_OPTIONS=--openssl-legacy-provider
- npm install - npm install
- ls
- npm run build - npm run build
- echo $NODE_MODULES_PATH - echo $NODE_MODULES_PATH
- cp -r dist /app/build/$DRONE_REPO_NAME - cp -r dist /app/build/$DRONE_REPO_NAME