@@ -42,7 +42,7 @@ async function bumpPackageVersions(version: string) {
42
42
async function commitVersionChanges ( version : string ) {
43
43
console . log ( chalk . blue ( "Committing..." ) ) ;
44
44
await $ `git add .` ;
45
-
45
+
46
46
// Check if there are changes to commit
47
47
const { stdout : statusOutput } = await $ `git status --porcelain` ;
48
48
if ( statusOutput . trim ( ) ) {
@@ -51,9 +51,16 @@ async function commitVersionChanges(version: string) {
51
51
} else {
52
52
console . log ( chalk . yellow ( "No changes to commit for version bump" ) ) ;
53
53
}
54
-
54
+
55
55
await $ `git commit --allow-empty -m "chore: release ${ version } " -m "Release-As: ${ version } "` ;
56
- await $ `git push` ;
56
+
57
+ const { exitCode : pushExitCode } = await $ ( { nothrow : true } ) `git push` ;
58
+ if ( pushExitCode !== 0 ) {
59
+ console . warn (
60
+ chalk . yellow ( "! Failed to push branch. You may need to push manually." ) ,
61
+ ) ;
62
+ }
63
+
57
64
await $ `git push --tags -f` ;
58
65
}
59
66
@@ -70,7 +77,10 @@ async function getPublicPackages() {
70
77
71
78
function validatePackages ( publicPackages : any [ ] ) {
72
79
const nonActorCorePackages = publicPackages . filter (
73
- ( pkg ) => pkg . name !== "actor-core" && pkg . name !== "create-actor" && ! pkg . name . startsWith ( "@actor-core/" ) ,
80
+ ( pkg ) =>
81
+ pkg . name !== "actor-core" &&
82
+ pkg . name !== "create-actor" &&
83
+ ! pkg . name . startsWith ( "@actor-core/" ) ,
74
84
) ;
75
85
76
86
if ( nonActorCorePackages . length > 0 ) {
0 commit comments