mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove release-branch-cutoff from yarn bump-all-updated-packages (#43040)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43040 Changelog: [Internal] Remove release-branch-cutoff option as its been replaced by `yarn set-version --skip-react-native-version` Reviewed By: huntie Differential Revision: D53742450 fbshipit-source-id: 726479698ec4f4f61d9a1ddde95e246e033f864c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fdf4ec3297
commit
8ff05b5a18
@@ -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 () => {
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user