From fcd323fa8c4d27eb4a614903e65ca98a67c83542 Mon Sep 17 00:00:00 2001 From: Alireza Date: Tue, 26 Sep 2023 11:43:37 -0400 Subject: [PATCH] chore(publish): fix timeout problem (#3678) --- .circleci/config.yml | 8 ++++++++ modes/segmentation/package.json | 2 +- swap-node-cypress.sh | 10 ---------- 3 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 swap-node-cypress.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index e2971b7318a..90897ae3605 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -228,6 +228,14 @@ jobs: name: build the other half of the packages command: | yarn run build:package-all-1 + - run: + name: increase min time out + command: | + npm config set fetch-retry-mintimeout 20000 + - run: + name: increase max time out + command: | + npm config set fetch-retry-maxtimeout 120000 - run: name: publish package versions command: | diff --git a/modes/segmentation/package.json b/modes/segmentation/package.json index 3bc25bc5017..4d5e0559da2 100644 --- a/modes/segmentation/package.json +++ b/modes/segmentation/package.json @@ -20,7 +20,7 @@ "module": "src/index.tsx", "engines": { "node": ">=14", - "npm": ">=6", + "npm": ">=7", "yarn": ">=1.16.0" }, "scripts": { diff --git a/swap-node-cypress.sh b/swap-node-cypress.sh deleted file mode 100644 index 2b5938f13c7..00000000000 --- a/swap-node-cypress.sh +++ /dev/null @@ -1,10 +0,0 @@ -set +e -wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" -nvm install v18 -nvm alias default 18.18.0 - -echo 'export NVM_DIR="$HOME/.nvm"' >>$BASH_ENV -echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >>$BASH_ENV