diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 218bb2b..2674c18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,16 +45,50 @@ jobs: exit 1 fi - - name: Verify version matches Cargo.toml + - name: Verify version matches all manifests run: | - CARGO_VERSION=$(grep '^version =' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/') RELEASE_VERSION="${{ steps.version.outputs.version }}" + ERRORS=0 + + # Check Cargo.toml + CARGO_VERSION=$(grep '^version =' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/') if [ "$CARGO_VERSION" != "$RELEASE_VERSION" ]; then - echo "⚠️ Version mismatch: Cargo.toml has $CARGO_VERSION, release tag is $RELEASE_VERSION" - echo "Please update Cargo.toml version before creating release" + echo "❌ Cargo.toml: $CARGO_VERSION (expected $RELEASE_VERSION)" + ERRORS=1 + else + echo "✅ Cargo.toml: $CARGO_VERSION" + fi + + # Check pyproject.toml + PYPROJECT_VERSION=$(grep '^version =' pyproject.toml | head -1 | sed 's/.*"\(.*\)".*/\1/') + if [ "$PYPROJECT_VERSION" != "$RELEASE_VERSION" ]; then + echo "❌ pyproject.toml: $PYPROJECT_VERSION (expected $RELEASE_VERSION)" + ERRORS=1 + else + echo "✅ pyproject.toml: $PYPROJECT_VERSION" + fi + + # Check bindings/wasm/package.json + NPM_VERSION=$(grep '"version":' bindings/wasm/package.json | head -1 | sed 's/.*: *"\([^"]*\)".*/\1/') + if [ "$NPM_VERSION" != "$RELEASE_VERSION" ]; then + echo "❌ bindings/wasm/package.json: $NPM_VERSION (expected $RELEASE_VERSION)" + ERRORS=1 + else + echo "✅ bindings/wasm/package.json: $NPM_VERSION" + fi + + if [ $ERRORS -eq 1 ]; then + echo "" + echo "⚠️ Version mismatch detected!" + echo "Please update all manifest files before creating release:" + echo " - Cargo.toml" + echo " - pyproject.toml" + echo " - bindings/wasm/package.json" exit 1 fi - echo "✅ Version matches: $CARGO_VERSION" + + echo "" + echo "✅ All versions match: $RELEASE_VERSION" # Publish Rust crate to crates.io publish-crates: diff --git a/Cargo.toml b/Cargo.toml index 3dc8f81..8828c5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "kya-validator" -version = "0.2.0" +version = "0.2.2" edition = "2021" description = "Rust core KYA (Know Your Agent) validator with Python bindings, TEE support, and blockchain integration" license = "MPL-2.0" diff --git a/bindings/wasm/package.json b/bindings/wasm/package.json index ef26c93..338fb32 100644 --- a/bindings/wasm/package.json +++ b/bindings/wasm/package.json @@ -1,6 +1,6 @@ { "name": "@open-kya/kya-validator-wasm", - "version": "0.2.0", + "version": "0.2.2", "description": "WebAssembly bindings for KYA (Know Your Agent) Validator - browser and Node.js", "keywords": [ "kya", diff --git a/pyproject.toml b/pyproject.toml index 9b0d1e2..9a08557 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ # kya-validator/pyproject.toml [project] name = "kya-validator" -version = "0.2.0" +version = "0.2.2" description = "Rust core KYA (Know Your Agent) validator with Python bindings, TEE support, and blockchain integration" authors = [{name = "KYA Contributors", email = "lkl@cph.ai"}] readme = "README.md"