Skip to content

Commit 774e858

Browse files
authored
ci: simplify changeset version script by removing unnecessary commit/reset (#4085)
1 parent 1f88cc9 commit 774e858

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.changeset/config.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
"access": "public",
44
"baseBranch": "origin/main",
55
"changelog": "@changesets/cli/changelog",
6-
"commit": [
7-
"@changesets/cli/commit",
8-
{
9-
"skipCI": false
10-
}
11-
],
6+
"commit": false,
127
"ignore": [],
138
"linked": [],
149
"privatePackages": {

.github/scripts/changeset-version-with-postbump.mts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ function bumpPatch(version: string): string {
2222
echo('📦 Running changeset version...');
2323
await $`yarn changeset version`;
2424

25-
// Undo the commit that changeset version made, but keep the changes
26-
// This allows the changesets action to create a single commit with all changes
27-
echo('🔙 Undoing changeset commit (keeping changes)...');
28-
await $`git reset --soft HEAD~1`;
29-
3025
// Changesets doesn't bump or update the dependency-profiles package, so we need to do that manually
3126
echo('\n🔄 Updating dependency-profiles...');
3227
if (fs.existsSync(DEPENDENCY_PROFILES_DIR)) {

0 commit comments

Comments
 (0)