Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down