更新 .drone.yml

This commit is contained in:
zhangkaihuai
2024-09-15 09:48:21 +00:00
parent 22b495e037
commit d6acc9cdb6

View File

@@ -20,13 +20,11 @@ steps:
- npm -v
- mkdir -p ./node_modules
- export NODE_MODULES_PATH=`pwd`/node_modules
- npm config set registry https://registry.npmmirror.com
- set NODE_OPTIONS=--openssl-legacy-provider
# - npm config set registry https://registry.npmmirror.com
# - set NODE_OPTIONS=--openssl-legacy-provider
- npm install
- ls
- cd node_modules
- ls
- npm run build
- ls /app/build/$DRONE_REPO_NAME/
- echo $NODE_MODULES_PATH
- cp -r dist /app/build/$DRONE_REPO_NAME