Compare commits

...
3 Commits
Author SHA1 Message Date
William Fu-Hinthorn 738f38cb35 bump prebuilt 2025-10-20 17:11:29 -07:00
William Fu-Hinthorn 252d6efbbf Permit releases on 0.6 branch 2025-10-20 16:58:04 -07:00
William FHandGitHub dc0ee4063d chore: Allow checkpoint 3.0 in 0.6.* (#6315) 2025-10-20 16:33:14 -07:00
6 changed files with 62 additions and 22 deletions
+7 -1
View File
@@ -7,6 +7,12 @@ on:
required: true
type: string
description: "From which folder this pipeline executes"
release-branch:
required: false
type: string
default: "main"
env:
PYTHON_VERSION: "3.10"
@@ -16,7 +22,7 @@ permissions:
jobs:
build:
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/${{ inputs.release-branch }}'
runs-on: ubuntu-latest
outputs:
+47 -13
View File
@@ -16,7 +16,7 @@ env:
jobs:
build:
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/0.6'
runs-on: ubuntu-latest
outputs:
@@ -79,6 +79,10 @@ jobs:
echo short-pkg-name="$SHORT_PKG_NAME" >> $GITHUB_OUTPUT
echo version="$VERSION" >> $GITHUB_OUTPUT
echo tag="$TAG" >> $GITHUB_OUTPUT
echo "Pkg-name: $PKG_NAME"
echo "Short-pkg-name: $SHORT_PKG_NAME"
echo "Version: $VERSION"
echo "Tag: $TAG"
release-notes:
needs:
@@ -93,7 +97,7 @@ jobs:
path: langgraph
sparse-checkout: | # this only grabs files for relevant dir
${{ inputs.working-directory }}
ref: main # this scopes to just master branch
ref: "0.6" #this scopes to just 0.6 branch
fetch-depth: 0 # this fetches entire commit history
- name: Check Tags
id: check-tags
@@ -105,19 +109,48 @@ jobs:
VERSION: ${{ needs.build.outputs.version }}
TAG: ${{ needs.build.outputs.tag }}
run: |
if [ -z $SHORT_PKG_NAME ]; then
REGEX="^\\d+\\.\\d+\\.\\d+((a|b|rc)\\d+)?\$"
else
REGEX="^$SHORT_PKG_NAME==\\d+\\.\\d+\\.\\d+((a|b|rc)\\d+)?\$"
fi
echo $REGEX
PREV_TAG=$(git tag --sort=-creatordate | grep -P $REGEX | head -1 || echo "")
echo $PREV_TAG
if [ "$TAG" == "$PREV_TAG" ]; then
echo "No new version to release"
# 1) Parse major/minor and enforce we're on the 0.6 series
MAJOR="${VERSION%%.*}"
REST="${VERSION#*.}"
MINOR="${REST%%.*}"
# Minor/major numeric guard: fail if >= 0.7.* (or any non-0 major)
if [ -z "$MAJOR" ] || [ -z "$MINOR" ]; then
echo "Could not parse VERSION '$VERSION' to MAJOR.MINOR"
exit 1
fi
echo prev-tag="$PREV_TAG" >> $GITHUB_OUTPUT
if [ "$MAJOR" -ne 0 ] || [ "$MINOR" -ne 6 ]; then
echo "Refusing to release VERSION '$VERSION' from 0.6 maintenance branch (got $MAJOR.$MINOR)"
exit 1
fi
# 2) Build a regex that only matches 0.6.* tags, handling both tag shapes
# - Plain: ^0\.6\.\d+((a|b|rc)\d+)?$
# - With prefix: ^<SHORT>==0\.6\.\d+((a|b|rc)\d+)?$
SERIES_REGEX="0\\.6"
if [ -z "$SHORT_PKG_NAME" ]; then
REGEX="^${SERIES_REGEX}\\.\\d+((a|b|rc)\\d+)?$"
else
# SHORT_PKG_NAME is already pre-sanitized by your step (e.g., no spaces).
REGEX="^${SHORT_PKG_NAME}==${SERIES_REGEX}\\.\\d+((a|b|rc)\\d+)?$"
fi
echo "Tag match regex: $REGEX"
# 3) Find the most recent tag in this series
PREV_TAG="$(git tag --sort=-creatordate | grep -P "$REGEX" | head -1 || true)"
echo "Previous tag in series: ${PREV_TAG:-<none>}"
# 4) If computed TAG equals the previous tag, theres nothing new to release
if [ "$TAG" = "$PREV_TAG" ] && [ -n "$TAG" ]; then
echo "No new version to release for 0.6.x (TAG matches previous)."
exit 1
fi
# 5) Surface prev-tag for later steps
echo "prev-tag=$PREV_TAG" >> "$GITHUB_OUTPUT"
- name: Generate release body
id: generate-release-body
working-directory: langgraph
@@ -149,6 +182,7 @@ jobs:
uses: ./.github/workflows/_test_release.yml
with:
working-directory: ${{ inputs.working-directory }}
release-branch: "0.6"
secrets: inherit
pre-release-checks:
+2 -2
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "langgraph"
version = "0.6.10"
version = "0.6.11"
description = "Building stateful, multi-actor applications with LLMs"
authors = []
requires-python = ">=3.9"
@@ -13,7 +13,7 @@ license = "MIT"
license-files = ['LICENSE']
dependencies = [
"langchain-core>=0.1",
"langgraph-checkpoint>=2.1.0,<3.0.0",
"langgraph-checkpoint>=2.1.0,<4.0.0",
"langgraph-sdk>=0.2.2,<0.3.0",
"langgraph-prebuilt>=0.6.0,<0.7.0",
"xxhash>=3.5.0",
+2 -2
View File
@@ -1428,7 +1428,7 @@ wheels = [
[[package]]
name = "langgraph"
version = "0.6.10"
version = "0.6.11"
source = { editable = "." }
dependencies = [
{ name = "langchain-core" },
@@ -1674,7 +1674,7 @@ dev = [
[[package]]
name = "langgraph-prebuilt"
version = "0.6.4"
version = "0.6.5"
source = { editable = "../prebuilt" }
dependencies = [
{ name = "langchain-core" },
+2 -2
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "langgraph-prebuilt"
version = "0.6.4"
version = "0.6.5"
description = "Library with high-level APIs for creating and executing LangGraph agents and tools."
authors = []
requires-python = ">=3.9"
@@ -12,7 +12,7 @@ readme = "README.md"
license = "MIT"
license-files = ['LICENSE']
dependencies = [
"langgraph-checkpoint>=2.1.0,<3.0.0",
"langgraph-checkpoint>=2.1.0,<4.0.0",
"langchain-core>=0.3.67",
]
+2 -2
View File
@@ -257,7 +257,7 @@ wheels = [
[[package]]
name = "langgraph"
version = "0.6.10"
version = "0.6.11"
source = { editable = "../langgraph" }
dependencies = [
{ name = "langchain-core" },
@@ -403,7 +403,7 @@ dev = [
[[package]]
name = "langgraph-prebuilt"
version = "0.6.4"
version = "0.6.5"
source = { editable = "." }
dependencies = [
{ name = "langchain-core" },