diff --git a/README.md b/README.md index c0d8314..ff0b131 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Add to your `Cargo.toml`: ```toml [dependencies] -dagx = "0.1" +dagx = "0.2" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` diff --git a/scripts/release_check.sh b/scripts/release_check.sh index 75578d8..f9f4cdc 100755 --- a/scripts/release_check.sh +++ b/scripts/release_check.sh @@ -7,7 +7,7 @@ set -e # ============================================================================= # CONFIGURATION # ============================================================================= -VERSION="0.2.1" +VERSION="0.2.2" echo "==================" echo "dagx Release Check" @@ -136,6 +136,9 @@ grep -q "# dagx" README.md || check_fail "README.md title incorrect" grep -q "https://crates.io/crates/dagx" README.md || check_fail "README.md crates.io badge incorrect" grep -q "https://docs.rs/dagx" README.md || check_fail "README.md docs.rs badge incorrect" grep -q "https://github.com/swaits/dagx" README.md || check_fail "README.md GitHub URL incorrect" +# Extract major.minor version (e.g., "0.2.1" -> "0.2") +MAJOR_MINOR=$(echo "$VERSION" | cut -d'.' -f1-2) +grep -q "dagx = \"$MAJOR_MINOR\"" README.md || check_fail "README.md dependency version not \"$MAJOR_MINOR\" (found: $(grep 'dagx = ' README.md | head -1))" check_pass "README.md looks perfect" echo ""