diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4449a5b..099c6c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,6 +76,7 @@ jobs: # pnpm publishes via npm trusted publishing (OIDC) itself; the runner's npm is too old for it # Skipping an already published version lets a failed run be retried safely + # Waiting for the version to be installable keeps the GitHub release from getting ahead of npm - name: Publish package if: steps.check.outputs.release == 'true' env: @@ -88,7 +89,7 @@ jobs: elif [[ -n "$(pnpm view "$name@${VERSION#v}" version 2>/dev/null)" ]]; then echo "$name@${VERSION#v} is already published" else - pnpm publish --no-git-checks + pnpm publish --no-git-checks --publish-wait-timeout 600000 fi - name: Create GitHub release