Skip to content

Commit

Permalink
Remove release-branch-cutoff from yarn bump-all-updated-packages
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal] Remove release-branch-cutoff option as its been replaced by `yarn set-version --skip-react-native-version`

Differential Revision: D53742450
  • Loading branch information
lunaleaps authored and facebook-github-bot committed Feb 15, 2024
1 parent 16276ce commit c72fba8
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions scripts/monorepo/bump-all-updated-packages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,9 @@ const {execSync} = require('child_process');
const inquirer = require('inquirer');
const path = require('path');
const {echo, exec, exit} = require('shelljs');
const yargs = require('yargs');

const ROOT_LOCATION = path.join(__dirname, '..', '..', '..');

const {
argv: {releaseBranchCutoff},
} = yargs
.option('release-branch-cutoff', {
type: 'boolean',
describe: 'Should force bump minor version for each public package',
})
.strict();

const buildExecutor =
(packageAbsolutePath, packageRelativePathFromRoot, packageManifest) =>
async () => {
Expand All @@ -50,21 +40,6 @@ const buildExecutor =
return;
}

if (releaseBranchCutoff) {
const updatedVersion = bumpPackageVersion(
packageAbsolutePath,
packageManifest,
'minor',
);
echo(
`\u2705 Successfully bumped ${chalk.green(
packageName,
)} to ${chalk.green(updatedVersion)}`,
);

return;
}

if (
!detectPackageUnreleasedChanges(
packageRelativePathFromRoot,
Expand Down

0 comments on commit c72fba8

Please sign in to comment.