Skip to content

Commit 677710e

Browse files
wagnermacielannieyw
authored andcommitted
build: update the commit messages in the stage-release script (#20622)
* build: update the commit messages in the stage-release script * build: update the commit message check in the publish script (cherry picked from commit c7d7462)
1 parent b8f624e commit 677710e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/release/publish-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class PublishReleaseTask extends BaseReleaseTask {
144144
* through the release staging script.
145145
*/
146146
private _verifyLastCommitFromStagingScript() {
147-
if (!/chore: (bump version|update changelog for)/.test(this.git.getCommitTitle('HEAD'))) {
147+
if (!/release: (bump version|update changelog for)/.test(this.git.getCommitTitle('HEAD'))) {
148148
console.error(chalk.red(` ✘ The latest commit of the current branch does not seem to be ` +
149149
` created by the release staging script.`));
150150
console.error(chalk.red(` Please stage the release using the staging script.`));

tools/release/stage-release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ class StageReleaseTask extends BaseReleaseTask {
136136
// Note: When updating the commit messages here. Please also update the
137137
// release publish script to detect the new commit messages.
138138
if (needsVersionBump) {
139-
this.git.createNewCommit(`chore: bump version to ${newVersionName} w/ changelog`);
139+
this.git.createNewCommit(`release: bump version to ${newVersionName} w/ changelog`);
140140
} else {
141-
this.git.createNewCommit(`chore: update changelog for ${newVersionName}`);
141+
this.git.createNewCommit(`release: update changelog for ${newVersionName}`);
142142
}
143143

144144
console.info();

0 commit comments

Comments
 (0)