Skip to content

Commit 3ff510a

Browse files
zaniebclaude
andauthored
Increase the timeout for crates.io publishes (#19287)
rust-lang/cargo#11222 --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3072810 commit 3ff510a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish-crates.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
persist-credentials: false
2727
- uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4
2828
id: auth
29+
- name: Install nightly toolchain
30+
# Nightly is required for the unstable `-Zpublish-timeout` flag, which lets us
31+
# raise the per-crate wait above the 60s default. crates.io indexing has been
32+
# known to lag long enough to exceed that during workspace publishes.
33+
run: rustup toolchain install nightly-2026-04-15 --profile minimal --no-self-update
2934
- name: Publish workspace crates
3035
# Note `--no-verify` is safe because we do a publish dry-run elsewhere in CI
31-
run: cargo publish --workspace --no-verify
36+
run: cargo +nightly-2026-04-15 publish --workspace --no-verify -Zpublish-timeout --config 'publish.timeout=600'
3237
env:
3338
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)