From 76b12d9f9ed6d09014ed574b3a1f40545cdf72ad Mon Sep 17 00:00:00 2001 From: carlos-alm <127798846+carlos-alm@users.noreply.github.com> Date: Tue, 3 Mar 2026 19:50:29 -0700 Subject: [PATCH] ci: include Cargo.toml in publish version bump commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish workflow runs sync-native-versions.js which updates crates/codegraph-core/Cargo.toml with the new version, but the version bump commit only staged package.json, package-lock.json, CHANGELOG.md, and DEPENDENCIES.json — leaving Cargo.toml out. This caused the native engine version to drift from the npm version, requiring manual fixes like #310. Add Cargo.toml to both the git diff check and git add in the "Push version bump via PR" step. --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f76fbdbd..af9bf174 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -432,10 +432,10 @@ jobs: BRANCH="release/v${VERSION}" # Check if there are version bump changes to push - if git diff --quiet HEAD -- package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json; then + if git diff --quiet HEAD -- package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json crates/codegraph-core/Cargo.toml; then echo "No version bump commit to push — skipping PR" else - git add -f package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json + git add -f package.json package-lock.json CHANGELOG.md generated/DEPENDENCIES.json crates/codegraph-core/Cargo.toml git commit -m "chore: release v${VERSION}" git push origin "HEAD:refs/heads/${BRANCH}" gh pr create \