increase publish script timeouts (#3570)
This commit is contained in:
parent
fc370d8941
commit
a319ad9497
6 changed files with 6 additions and 7 deletions
2
.github/workflows/publish-canary.yml
vendored
2
.github/workflows/publish-canary.yml
vendored
|
@ -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:
|
||||||
|
|
2
.github/workflows/publish-manual.yml
vendored
2
.github/workflows/publish-manual.yml
vendored
|
@ -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:
|
||||||
|
|
2
.github/workflows/publish-new.yml
vendored
2
.github/workflows/publish-new.yml
vendored
|
@ -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:
|
||||||
|
|
2
.github/workflows/publish-patch.yml
vendored
2
.github/workflows/publish-patch.yml
vendored
|
@ -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 }}
|
||||||
|
|
2
.github/workflows/publish-templates.yml
vendored
2
.github/workflows/publish-templates.yml
vendored
|
@ -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:
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue