chore: fix yarn timeout in gitub actions

This commit is contained in:
DIYgod 2022-01-22 14:51:42 +00:00
parent 5bba997285
commit 2d9cf45fad
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 4 additions and 2 deletions

View File

@ -22,11 +22,13 @@ RUN if [ "$USE_CHINA_NPM_REGISTRY" = 1 ]; then \
RUN npm i -g npm
RUN if [ "$PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" = 0 ]; then \
unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD && yarn ;\
unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD ;\
else \
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn ;\
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ;\
fi;
RUN yarn --network-timeout 1000000
COPY . /app
RUN node scripts/docker/minify-docker.js