This commit is contained in:
2026-09-11 20:27:21 +08:00
parent bd3f4901ba
commit fe7450bf43
+12 -2
View File
@@ -2,5 +2,15 @@ masterProfiles: ['','uat','prod']
Profiles: ['','dev'] Profiles: ['','dev']
jobConfigFile: "djangoadminConfig.yml" jobConfigFile: "djangoadminConfig.yml"
npmCompileCMD: | npmCompileCMD: |
yarn install \ export PATH=/usr/local/node/bin:$PATH
&& yarn run build:${PROFILE} set -e \
&& yarn config set registry https://registry.npmmirror.com \
&& yarn config get registry \
&& yarn config set strict-ssl false \
&& yarn config set sass_binary_site https://repo.huaweicloud.com/node-sass/node-sass \
&& rm -rf package-lock.json \
&& rm -rf node_modules/.cache 2>/dev/null || true \
&& yarn cache clean --force \
&& yarn global add node-gyp@10.3.1 \
&& yarn install --unsafe-perm --legacy-peer-deps --network-timeout 300000 \
&& yarn run build:${PROFILE}