diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 636f1cd06..e654ee8f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,7 +62,12 @@ jobs: working-directory: ${{ inputs.working-directory }} run: | PKG_NAME=$(grep -m 1 "^name = " pyproject.toml | cut -d '"' -f 2) - VERSION=$(grep -m 1 "^version = " pyproject.toml | cut -d '"' -f 2) + # sdk-py uses dynamic versioning from langgraph_sdk/__init__.py + if [ "$PKG_NAME" = "langgraph-sdk" ]; then + VERSION=$(grep -m 1 '^__version__' langgraph_sdk/__init__.py | cut -d '"' -f 2) + else + VERSION=$(grep -m 1 "^version = " pyproject.toml | cut -d '"' -f 2) + fi SHORT_PKG_NAME="$(echo "$PKG_NAME" | sed -e 's/langgraph//g' -e 's/-//g')" if [ -z $SHORT_PKG_NAME ]; then TAG="$VERSION"