From 4ce6949344dfdd4dafb9f1e910ad671b968d5959 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Wed, 8 Apr 2026 19:28:21 -0700 Subject: [PATCH] ci: simplify changeset version script by removing unnecessary commit/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 --- .changeset/config.json | 7 +------ .github/scripts/changeset-version-with-postbump.mts | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index a5132feb39..e3b685197e 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -3,12 +3,7 @@ "access": "public", "baseBranch": "origin/main", "changelog": "@changesets/cli/changelog", - "commit": [ - "@changesets/cli/commit", - { - "skipCI": false - } - ], + "commit": false, "ignore": [], "linked": [], "privatePackages": { diff --git a/.github/scripts/changeset-version-with-postbump.mts b/.github/scripts/changeset-version-with-postbump.mts index dad7578635..4a6a688244 100644 --- a/.github/scripts/changeset-version-with-postbump.mts +++ b/.github/scripts/changeset-version-with-postbump.mts @@ -22,11 +22,6 @@ function bumpPatch(version: string): string { echo('šŸ“¦ Running changeset version...'); await $`yarn changeset version`; -// Undo the commit that changeset version made, but keep the changes -// This allows the changesets action to create a single commit with all changes -echo('šŸ”™ Undoing changeset commit (keeping changes)...'); -await $`git reset --soft HEAD~1`; - // Changesets doesn't bump or update the dependency-profiles package, so we need to do that manually echo('\nšŸ”„ Updating dependency-profiles...'); if (fs.existsSync(DEPENDENCY_PROFILES_DIR)) {