Skip to content

Commit 3e95ce4

Browse files
committed
ci: publish bug fixes
1 parent 91e573f commit 3e95ce4

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/workflows/canary.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ jobs:
455455
CRATE_VERSION="${VERSION%+*}"
456456
sed -i "s/^version = \".*\"/version = \"${CRATE_VERSION}\"/" Cargo.toml
457457
458+
# Update inter-crate dependency versions to use exact prerelease version
459+
# (semver ranges like ^0.1.0 don't match prereleases)
460+
for crate in inferadb-ledger-types inferadb-ledger-store inferadb-ledger-state inferadb-ledger-raft inferadb-ledger-sdk; do
461+
sed -i "s/\(${crate} = { version = \)\"[^\"]*\"/\1\"=${CRATE_VERSION}\"/" Cargo.toml
462+
done
463+
458464
- name: Cache Rust dependencies
459465
uses: step-security/rust-cache@f8fba7098297c8c53a7c9a30575ec2ad4ad85056 # v2.8.2
460466

@@ -468,7 +474,7 @@ jobs:
468474
run: |
469475
for crate in inferadb-ledger-types inferadb-ledger-store inferadb-ledger-state inferadb-ledger-raft inferadb-ledger-sdk; do
470476
echo "Publishing ${crate}..."
471-
cargo publish -p "${crate}" --token "$CARGO_REGISTRY_TOKEN" --allow-dirty || echo "${crate} may already be published"
477+
cargo publish -p "${crate}" --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
472478
echo "Waiting for crates.io to index..."
473479
sleep 45
474480
done

.github/workflows/nightly.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,15 @@ jobs:
530530
env:
531531
VERSION: ${{ needs.version.outputs.version }}
532532
run: |
533-
# Update workspace version
533+
# Update workspace package version
534534
sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" Cargo.toml
535535
536+
# Update inter-crate dependency versions to use exact prerelease version
537+
# (semver ranges like ^0.1.0 don't match prereleases)
538+
for crate in inferadb-ledger-types inferadb-ledger-store inferadb-ledger-state inferadb-ledger-raft inferadb-ledger-sdk; do
539+
sed -i "s/\(${crate} = { version = \)\"[^\"]*\"/\1\"=${VERSION}\"/" Cargo.toml
540+
done
541+
536542
- name: Cache Rust dependencies
537543
uses: step-security/rust-cache@f8fba7098297c8c53a7c9a30575ec2ad4ad85056 # v2.8.2
538544

@@ -546,7 +552,7 @@ jobs:
546552
run: |
547553
for crate in inferadb-ledger-types inferadb-ledger-store inferadb-ledger-state inferadb-ledger-raft inferadb-ledger-sdk; do
548554
echo "Publishing ${crate}..."
549-
cargo publish -p "${crate}" --token "$CARGO_REGISTRY_TOKEN" --allow-dirty || echo "${crate} may already be published"
555+
cargo publish -p "${crate}" --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
550556
echo "Waiting for crates.io to index..."
551557
sleep 45
552558
done

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,31 +474,31 @@ jobs:
474474
env:
475475
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
476476
run: |
477-
cargo publish -p inferadb-ledger-types --token "$CARGO_REGISTRY_TOKEN" --allow-dirty || echo "inferadb-ledger-types may already be published"
477+
cargo publish -p inferadb-ledger-types --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
478478
echo "Waiting for crates.io to index..."
479479
sleep 45
480480
481481
- name: Publish inferadb-ledger-store
482482
env:
483483
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
484484
run: |
485-
cargo publish -p inferadb-ledger-store --token "$CARGO_REGISTRY_TOKEN" --allow-dirty || echo "inferadb-ledger-store may already be published"
485+
cargo publish -p inferadb-ledger-store --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
486486
echo "Waiting for crates.io to index..."
487487
sleep 45
488488
489489
- name: Publish inferadb-ledger-state
490490
env:
491491
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
492492
run: |
493-
cargo publish -p inferadb-ledger-state --token "$CARGO_REGISTRY_TOKEN" --allow-dirty || echo "inferadb-ledger-state may already be published"
493+
cargo publish -p inferadb-ledger-state --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
494494
echo "Waiting for crates.io to index..."
495495
sleep 45
496496
497497
- name: Publish inferadb-ledger-raft
498498
env:
499499
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
500500
run: |
501-
cargo publish -p inferadb-ledger-raft --token "$CARGO_REGISTRY_TOKEN" --allow-dirty || echo "inferadb-ledger-raft may already be published"
501+
cargo publish -p inferadb-ledger-raft --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
502502
echo "Waiting for crates.io to index..."
503503
sleep 45
504504

0 commit comments

Comments
 (0)