You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`New release branch "${this.#currentBranch}" will be created`);
179
+
console.log(`New release branch "${this.#currentReleaseBranch}" will be created`);
180
180
}
181
181
console.log();
182
182
@@ -230,16 +230,16 @@ export default class Publish {
230
230
231
231
// merge the previous release branch with the original branch
232
232
if(this.#previousRelease ){
233
-
res=awaitthis.#execGitCommand(`Switching to the branch "${this.#previousBranch}"`,["switch",this.#previousBranch],{"repeatOnError": false});
233
+
res=awaitthis.#execGitCommand(`Switching to the branch "${this.#previousReleaseBranch}"`,["switch",this.#previousReleaseBranch],{"repeatOnError": false});
234
234
if(!res.ok)returnres;
235
235
236
-
res=awaitthis.#execGitCommand(`Merging the branch "${this.#originalBranch }" to the branch "${this.#previousBranch}"`,["merge","--no-edit","--quiet","--ff-only",this.#originalBranch ],{"repeatOnError": false});
236
+
res=awaitthis.#execGitCommand(`Merging the branch "${this.#originalBranch }" to the branch "${this.#previousReleaseBranch}"`,["merge","--no-edit","--quiet","--ff-only",this.#originalBranch ],{"repeatOnError": false});
237
237
if(!res.ok)returnres;
238
238
}
239
239
240
240
// create release branch, if HEAD has no release branch
res=awaitthis.#execGitCommand(`Creating and switching to the branch "${this.#previousBranch}"`,["switch","--create",this.#previousBranch],{"repeatOnError": false});
res=awaitthis.#execGitCommand(`Creating and switching to the branch "${this.#previousReleaseBranch}"`,["switch","--create",this.#previousReleaseBranch],{"repeatOnError": false});
243
243
if(!res.ok)returnres;
244
244
}
245
245
}
@@ -248,19 +248,19 @@ export default class Publish {
248
248
if(this.#isMajorRelease ){
249
249
250
250
// create and switch major release branch
251
-
res=awaitthis.#execGitCommand(`Creating and switching to the new release branch "${this.#currentBranch}"`,["switch","--create",this.#currentBranch],{"repeatOnError": false});
251
+
res=awaitthis.#execGitCommand(`Creating and switching to the new release branch "${this.#currentReleaseBranch}"`,["switch","--create",this.#currentReleaseBranch],{"repeatOnError": false});
252
252
if(!res.ok)returnres;
253
253
254
254
// move previous release branch head
255
255
if(this.#previousRelease ){
256
256
res=awaitthis.#execGitCommand(
257
-
`Moving branch head "${this.#previousBranch}" to the release "${this.#previousRelease.versionString}"`,
257
+
`Moving branch head "${this.#previousReleaseBranch}" to the release "${this.#previousRelease.versionString}"`,
258
258
[
259
259
260
260
//
261
261
"branch",
262
262
"--force",
263
-
this.#previousBranch,
263
+
this.#previousReleaseBranch,
264
264
this.#previousRelease.versionString,
265
265
],
266
266
{"repeatOnError": false}
@@ -315,13 +315,13 @@ export default class Publish {
315
315
316
316
// track current release branch
317
317
if(this.#isMajorRelease ){
318
-
res=awaitthis.#execGitCommand(`Setting upstream for the branch "${this.#currentBranch}"`,[
318
+
res=awaitthis.#execGitCommand(`Setting upstream for the branch "${this.#currentReleaseBranch}"`,[
319
319
320
320
//
321
321
"push",
322
322
"--set-upstream",
323
323
"origin",
324
-
this.#currentBranch,
324
+
this.#currentReleaseBranch,
325
325
]);
326
326
if(!res.ok)returnres;
327
327
}
@@ -337,8 +337,8 @@ export default class Publish {
337
337
...newSet([
338
338
339
339
//
340
-
this.#currentBranch,
341
-
this.#previousBranch,
340
+
this.#currentReleaseBranch,
341
+
this.#previousReleaseBranch,
342
342
this.#currentRelease.versionString,
343
343
this.#latestTag,
344
344
this.#nextTag,
@@ -399,7 +399,7 @@ export default class Publish {
399
399
res=awaitthis.#execGitCommand(`Switching to the branch "${this.#originalBranch }"`,["switch",this.#originalBranch ],{"repeatOnError": false});
400
400
if(!res.ok)returnres;
401
401
402
-
res=awaitthis.#execGitCommand(`Merging the branch "${this.#currentBranch}" to the branch "${this.#originalBranch }"`,["merge","--no-edit","--quiet","--ff-only",this.#currentBranch],{"repeatOnError": false});
402
+
res=awaitthis.#execGitCommand(`Merging the branch "${this.#currentReleaseBranch}" to the branch "${this.#originalBranch }"`,["merge","--no-edit","--quiet","--ff-only",this.#currentReleaseBranch],{"repeatOnError": false});
0 commit comments