Skip to content

Commit b88a349

Browse files
committed
refactor: update release report
1 parent 80d79c9 commit b88a349

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

lib/package/release.js

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,14 @@ export default class Publish {
230230

231231
console.log();
232232

233+
// update documentation
234+
res = await this.#updateDocs();
235+
if ( !res.ok ) return res;
236+
237+
// update changelog
238+
res = await this.#updateChangelog();
239+
if ( !res.ok ) return res;
240+
233241
// prepare release branch
234242
if ( this.#originalBranch ) {
235243

@@ -240,16 +248,12 @@ export default class Publish {
240248

241249
res = await this.#execGitCommand( `Merging the branch "${ this.#originalBranch }" to the branch "${ this.#previousReleaseBranch }"`, [ "merge", "--no-edit", "--quiet", "--ff-only", this.#originalBranch ], { "repeatOnError": false } );
242250
if ( !res.ok ) return res;
243-
244-
console.log();
245251
}
246252

247253
// create release branch, if HEAD has no release branch
248254
else if ( !status.head.branches.has( this.#previousReleaseBranch ) ) {
249255
res = await this.#execGitCommand( `Creating and switching to the branch "${ this.#previousReleaseBranch }"`, [ "switch", "--create", this.#previousReleaseBranch ], { "repeatOnError": false } );
250256
if ( !res.ok ) return res;
251-
252-
console.log();
253257
}
254258
}
255259

@@ -276,18 +280,8 @@ export default class Publish {
276280
);
277281
if ( !res.ok ) return res;
278282
}
279-
280-
console.log();
281283
}
282284

283-
// update documentation
284-
res = await this.#updateDocs();
285-
if ( !res.ok ) return res;
286-
287-
// update changelog
288-
res = await this.#updateChangelog();
289-
if ( !res.ok ) return res;
290-
291285
// update package version
292286
this.#pkg.patchVersion( this.#newRelease );
293287

0 commit comments

Comments
 (0)