Skip to content

ci(release): push version branch via git CLI - #136

Merged
ajile-in merged 1 commit into
mainfrom
chore/release-push-git-cli
Sep 8, 2026
Merged

ajile-in merged 1 commit into
mainfrom
chore/release-push-git-cli

Conversation

@ajile-in

@ajile-in ajile-in commented Sep 8, 2026

Copy link
Copy Markdown
Member

Problem

The Release workflow finished green, but the version PR's branch (changeset-release/main) was never advanced — PR #103 got only its title/body updated.

Root cause: changesets/action@v2 defaults to push-with-git-cli: false, pushing the version-branch commits through the GitHub API via @changesets/ghcommit, which no-ops whenever the working tree is clean. This repo's changesets config auto-commits the version bump (DCO-signed hook + github-actions[bot] identity from changeset-version-ci), so after changeset version the tree is clean and ghcommit creates nothing.

Fix

Add push-with-git-cli: true. The action then force-pushes the local HEAD — which already contains the committed DCO-signed version bump — to changeset-release/main, moving the branch and updating the version PR.

Keeps the DCO-signed chore(release): new version commit authored by github-actions[bot] (same pattern as the v2.1.1 release).

changesets/action v2's default (push-with-git-cli: false) pushes version
branch commits through the GitHub API via @changesets/ghcommit, which
no-ops whenever the working tree is clean. Since this repo configures
changesets to auto-commit the version bump (DCO-signed commit hook +
identity from changeset-version-ci), the tree is clean after versioning
and the action never moved the changeset-release/main branch - the
version PR was metadata-updated but its branch kept the old tip.

Switch to push-with-git-cli: true so the action force-pushes the
already-committed DCO-signed version commit to the release branch.

Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>
@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8842ea3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ajile-in
ajile-in merged commit caeffc1 into main Sep 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant