Skip to content

ci: simplify changeset version script#4085

Merged
Saadnajmi merged 1 commit intomicrosoft:mainfrom
Saadnajmi:simplify-changeset-commit
Apr 9, 2026
Merged

ci: simplify changeset version script#4085
Saadnajmi merged 1 commit intomicrosoft:mainfrom
Saadnajmi:simplify-changeset-commit

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

  • Set commit: false in .changeset/config.json instead of ["@changesets/cli/commit", {"skipCI": false}]
  • Remove git reset --soft HEAD~1 from changeset-version-with-postbump.mts

changesets/action always runs git add . && git commit after the version script completes, regardless of whether changeset version already committed. The commit: true + git reset pattern is unnecessary — commit: false is simpler and equivalent.

Test plan

  • Verify the changesets version bump workflow still creates version PRs correctly

🤖 Generated with Claude Code

…reset

`changesets/action` always runs `git add . && git commit` after the
version script completes, regardless of whether `changeset version`
already committed. Setting `commit: false` and removing the
`git reset --soft HEAD~1` is simpler and equivalent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 9, 2026

⚠️ No Changeset found

Latest commit: 4ce6949

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

@Saadnajmi Saadnajmi merged commit 774e858 into microsoft:main Apr 9, 2026
14 checks passed
@Saadnajmi Saadnajmi deleted the simplify-changeset-commit branch April 9, 2026 13:27
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.

2 participants