Skip to content

Commit df87cf1

Browse files
committed
ci: allow npm publish propagation delay
1 parent 97ef0e8 commit df87cf1

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/release-cli.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Release Packages
33
env:
44
NODE_VERSION: '25'
55
NPM_REGISTRY_URL: https://registry.npmjs.org/
6+
NPM_PUBLISH_VERIFY_ATTEMPTS: '30'
7+
NPM_PUBLISH_VERIFY_DELAY_SECONDS: '10'
68
CLI_NATIVE_MODULE_DIRS: |
79
libraries/logger
810
libraries/md-compiler
@@ -232,7 +234,7 @@ jobs:
232234
needs: [check-version, build-napi]
233235
if: needs.check-version.outputs.publish_cli == 'true'
234236
runs-on: ubuntu-24.04
235-
timeout-minutes: 20
237+
timeout-minutes: 45
236238
steps:
237239
- uses: actions/checkout@v4
238240
- uses: ./.github/actions/setup-node-pnpm
@@ -350,8 +352,8 @@ jobs:
350352
verify_version_exists() {
351353
local package_name="$1"
352354
local package_version="$2"
353-
local attempts=10
354-
local delay_seconds=6
355+
local attempts="${NPM_PUBLISH_VERIFY_ATTEMPTS}"
356+
local delay_seconds="${NPM_PUBLISH_VERIFY_DELAY_SECONDS}"
355357
356358
for attempt in $(seq 1 "$attempts"); do
357359
if version_exists "$package_name" "$package_version"; then
@@ -410,7 +412,7 @@ jobs:
410412
needs: [check-version, publish-napi]
411413
if: needs.check-version.outputs.publish_cli == 'true'
412414
runs-on: ubuntu-24.04
413-
timeout-minutes: 20
415+
timeout-minutes: 30
414416
steps:
415417
- uses: actions/checkout@v4
416418
- uses: ./.github/actions/setup-node-pnpm
@@ -465,8 +467,8 @@ jobs:
465467
}
466468
467469
verify_version_exists() {
468-
local attempts=10
469-
local delay_seconds=6
470+
local attempts="${NPM_PUBLISH_VERIFY_ATTEMPTS}"
471+
local delay_seconds="${NPM_PUBLISH_VERIFY_DELAY_SECONDS}"
470472
471473
for attempt in $(seq 1 "$attempts"); do
472474
if version_exists; then
@@ -507,7 +509,7 @@ jobs:
507509
needs.check-version.outputs.publish_mcp == 'true' &&
508510
(needs.publish-cli.result == 'success' || needs.publish-cli.result == 'skipped')
509511
runs-on: ubuntu-24.04
510-
timeout-minutes: 20
512+
timeout-minutes: 30
511513
steps:
512514
- uses: actions/checkout@v4
513515
- uses: ./.github/actions/setup-node-pnpm
@@ -562,8 +564,8 @@ jobs:
562564
}
563565
564566
verify_version_exists() {
565-
local attempts=10
566-
local delay_seconds=6
567+
local attempts="${NPM_PUBLISH_VERIFY_ATTEMPTS}"
568+
local delay_seconds="${NPM_PUBLISH_VERIFY_DELAY_SECONDS}"
567569
568570
for attempt in $(seq 1 "$attempts"); do
569571
if version_exists; then

0 commit comments

Comments
 (0)