diff --git a/lerna.json b/lerna.json index 23f15ce4fb..d2162126cf 100644 --- a/lerna.json +++ b/lerna.json @@ -3,5 +3,13 @@ "docs", "packages/*" ], - "version": "54.2.0" + "version": "54.2.0", + "command": { + "version": { + "allowBranch": [ + "develop", + "release/*" + ] + } + } } diff --git a/scripts/create-release-branch.js b/scripts/create-release-branch.js index f980f28dc0..3896b5df73 100755 --- a/scripts/create-release-branch.js +++ b/scripts/create-release-branch.js @@ -78,6 +78,9 @@ const groupedMessages = changeLogGeneratorUtils.getMessagesGroupedByPackage(pars const changeLog = changeLogGeneratorUtils.getChangeLogText(releaseBranchName, groupedMessages); changeLogGeneratorUtils.writeChangeLog(changeLog); +const commitCommand = `git commit -a -m "chore: generated CHANGELOG for ${releaseBranchName}"`; +shell.exec(commitCommand); + // git clean but keeping node_modules around shell.exec('git clean -xfd -e node_modules'); @@ -85,7 +88,7 @@ shell.exec('git clean -xfd -e node_modules'); // increment the version number in all packages without publishing to npmjs // only run on branch named develop and do not create git tags shell.exec( - `lerna version ${nextVersion} --force-publish --allow-branch develop --no-git-tag-version --exact --yes` + `lerna version ${nextVersion} --force-publish --no-git-tag-version --exact --yes` ); // Using --no-git-tag-version prevents creating git tags but also prevents commiting