build : 启动npm install

This commit is contained in:
2024-10-03 17:25:47 +08:00
parent 925b3de4f9
commit 25da31b034

View File

@@ -20,9 +20,9 @@ steps:
- npm -v - npm -v
- 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
- set NODE_OPTIONS=--openssl-legacy-provider # - set NODE_OPTIONS=--openssl-legacy-provider
- npm install # - npm install
- 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