Browse Source

fix: 调整ci脚本

master
niushuai233 2 years ago
parent
commit
d9b5cc7de3
  1. 5
      .drone.yml

5
.drone.yml

@ -48,7 +48,10 @@ steps:
path: /dist path: /dist
commands: commands:
- echo 'node package start' - echo 'node package start'
# 打包 - ls -alh
- echo $PROD_API_URL
- sed -i "s#PROD_API_URL#$PROD_API_URL#g" .env.production
- cat .env.production
- 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
- npm run pre - npm run pre

Loading…
Cancel
Save