increase publish script timeouts (#3570)

This commit is contained in:
alex 2024-04-23 14:31:27 +01:00 committed by GitHub
parent fc370d8941
commit a319ad9497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 7 deletions

View file

@ -8,7 +8,7 @@ jobs:
deploy: deploy:
name: 'Publish Canary Packages' name: 'Publish Canary Packages'
environment: npm deploy environment: npm deploy
timeout-minutes: 15 timeout-minutes: 60
runs-on: ubuntu-latest-16-cores-open runs-on: ubuntu-latest-16-cores-open
steps: steps:

View file

@ -13,7 +13,7 @@ jobs:
deploy: deploy:
name: '(Re)Publish public packages manually' name: '(Re)Publish public packages manually'
environment: npm deploy environment: npm deploy
timeout-minutes: 15 timeout-minutes: 60
runs-on: ubuntu-latest-16-cores-open runs-on: ubuntu-latest-16-cores-open
outputs: outputs:

View file

@ -27,7 +27,7 @@ jobs:
deploy: deploy:
name: 'Publish new version of public packages' name: 'Publish new version of public packages'
environment: npm deploy environment: npm deploy
timeout-minutes: 15 timeout-minutes: 60
runs-on: ubuntu-latest-16-cores-open runs-on: ubuntu-latest-16-cores-open
steps: steps:

View file

@ -15,7 +15,7 @@ jobs:
deploy: deploy:
name: Publish patch release name: Publish patch release
environment: npm deploy environment: npm deploy
timeout-minutes: 15 timeout-minutes: 60
runs-on: ubuntu-latest-16-cores-open runs-on: ubuntu-latest-16-cores-open
outputs: outputs:
is_latest_version: ${{ steps.publish_step.outputs.is_latest_version }} is_latest_version: ${{ steps.publish_step.outputs.is_latest_version }}

View file

@ -19,7 +19,7 @@ defaults:
jobs: jobs:
publish_vite: publish_vite:
name: 'Vite' name: 'Vite'
timeout-minutes: 15 timeout-minutes: 60
runs-on: ubuntu-latest-16-cores-open runs-on: ubuntu-latest-16-cores-open
steps: steps:

View file

@ -160,9 +160,8 @@ export async function publish(distTag?: string) {
nicelog('Waiting for package to be published... attempt', attempt, 'of', total) nicelog('Waiting for package to be published... attempt', attempt, 'of', total)
// fetch the new package directly from the npm registry // fetch the new package directly from the npm registry
const newVersion = packageDetails.version 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) nicelog('looking for package at url: ', url)
const res = await fetch(url, { const res = await fetch(url, {
method: 'HEAD', method: 'HEAD',