From a319ad94971dd9bb8f3bf7a091441f94ea1b8e8e Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 23 Apr 2024 14:31:27 +0100 Subject: [PATCH] increase publish script timeouts (#3570) --- .github/workflows/publish-canary.yml | 2 +- .github/workflows/publish-manual.yml | 2 +- .github/workflows/publish-new.yml | 2 +- .github/workflows/publish-patch.yml | 2 +- .github/workflows/publish-templates.yml | 2 +- scripts/lib/publishing.ts | 3 +-- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-canary.yml b/.github/workflows/publish-canary.yml index 503466bd5..0f2a280fc 100644 --- a/.github/workflows/publish-canary.yml +++ b/.github/workflows/publish-canary.yml @@ -8,7 +8,7 @@ jobs: deploy: name: 'Publish Canary Packages' environment: npm deploy - timeout-minutes: 15 + timeout-minutes: 60 runs-on: ubuntu-latest-16-cores-open steps: diff --git a/.github/workflows/publish-manual.yml b/.github/workflows/publish-manual.yml index 81b8c65b4..5a661ca47 100644 --- a/.github/workflows/publish-manual.yml +++ b/.github/workflows/publish-manual.yml @@ -13,7 +13,7 @@ jobs: deploy: name: '(Re)Publish public packages manually' environment: npm deploy - timeout-minutes: 15 + timeout-minutes: 60 runs-on: ubuntu-latest-16-cores-open outputs: diff --git a/.github/workflows/publish-new.yml b/.github/workflows/publish-new.yml index f218c053e..b2d0f788e 100644 --- a/.github/workflows/publish-new.yml +++ b/.github/workflows/publish-new.yml @@ -27,7 +27,7 @@ jobs: deploy: name: 'Publish new version of public packages' environment: npm deploy - timeout-minutes: 15 + timeout-minutes: 60 runs-on: ubuntu-latest-16-cores-open steps: diff --git a/.github/workflows/publish-patch.yml b/.github/workflows/publish-patch.yml index c8e75ef6f..32337f8db 100644 --- a/.github/workflows/publish-patch.yml +++ b/.github/workflows/publish-patch.yml @@ -15,7 +15,7 @@ jobs: deploy: name: Publish patch release environment: npm deploy - timeout-minutes: 15 + timeout-minutes: 60 runs-on: ubuntu-latest-16-cores-open outputs: is_latest_version: ${{ steps.publish_step.outputs.is_latest_version }} diff --git a/.github/workflows/publish-templates.yml b/.github/workflows/publish-templates.yml index cc9d204fc..5ecbedc7d 100644 --- a/.github/workflows/publish-templates.yml +++ b/.github/workflows/publish-templates.yml @@ -19,7 +19,7 @@ defaults: jobs: publish_vite: name: 'Vite' - timeout-minutes: 15 + timeout-minutes: 60 runs-on: ubuntu-latest-16-cores-open steps: diff --git a/scripts/lib/publishing.ts b/scripts/lib/publishing.ts index 0ea60c12a..eb6c1127d 100644 --- a/scripts/lib/publishing.ts +++ b/scripts/lib/publishing.ts @@ -160,9 +160,8 @@ export async function publish(distTag?: string) { nicelog('Waiting for package to be published... attempt', attempt, 'of', total) // fetch the new package directly from the npm registry const newVersion = packageDetails.version - const unscopedName = packageDetails.name.replace('@tldraw/', '') - const url = `https://registry.npmjs.org/${packageDetails.name}/-/${unscopedName}-${newVersion}.tgz` + const url = `https://registry.npmjs.org/${packageDetails.name}/${newVersion}` nicelog('looking for package at url: ', url) const res = await fetch(url, { method: 'HEAD',