Fix: Optimize npm installation process for more reliable builds

This commit is contained in:
stabgan
2025-03-27 00:02:50 +05:30
parent b410cad83f
commit a0d92730db
2 changed files with 15 additions and 7 deletions

View File

@@ -60,6 +60,8 @@ jobs:
build-args: |
NPM_CONFIG_STRICT_SSL=false
NPM_CONFIG_REGISTRY=https://registry.npmjs.org/
NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=20000
NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=120000
NODE_ENV=development
publish-npm:
@@ -81,9 +83,11 @@ jobs:
run: |
npm config set strict-ssl false
npm config set registry https://registry.npmjs.org/
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
- name: Install dependencies
run: npm install
run: npm cache clean --force && npm install --legacy-peer-deps --no-optional
- name: Build package
run: npm run build