From e2318ef12d0ef0a4c45add0ed115b394059cb420 Mon Sep 17 00:00:00 2001 From: naorpeled Date: Sat, 7 Feb 2026 19:12:34 +0200 Subject: [PATCH] fix: attemp to resolve NPM publish issues --- .github/workflows/publish.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 605130c..da87b44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,23 +43,4 @@ jobs: - run: npm version $RELEASE_VERSION --no-git-tag-version - run: npm run build - name: Publish to npm - run: | - max_attempts=5 - attempt=1 - while [ $attempt -le $max_attempts ]; do - echo "Attempt $attempt of $max_attempts..." - if npm publish --access public; then - echo "Successfully published!" - break - else - if [ $attempt -eq $max_attempts ]; then - echo "Failed to publish after $max_attempts attempts" - exit 1 - fi - echo "Publish failed, waiting before retry..." - sleep_time=$((attempt * 30)) - echo "Waiting ${sleep_time} seconds before retry..." - sleep $sleep_time - attempt=$((attempt + 1)) - fi - done + run: npm publish \ No newline at end of file