|
|
|
@ -34,6 +34,9 @@ steps:
@@ -34,6 +34,9 @@ steps:
|
|
|
|
|
# node install |
|
|
|
|
- name: node-package |
|
|
|
|
image: niushuai233/node-cnpm:16.17.1 |
|
|
|
|
environment: |
|
|
|
|
PROD_API_URL: |
|
|
|
|
from_secret: PROD_API_URL |
|
|
|
|
volumes: |
|
|
|
|
- name: node-cache |
|
|
|
|
path: /node_cache |
|
|
|
@ -42,6 +45,9 @@ steps:
@@ -42,6 +45,9 @@ steps:
|
|
|
|
|
commands: |
|
|
|
|
- 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 cache /node_cache --global |
|
|
|
|