<commit_before>import { startRelease } from './releaseHelpers';

const packageNames = [
  'ringcentral-integration',
  'ringcentral-widgets',
  '@ringcentral-integration/i18n',
  '@ringcentral-integration/locale-loader',
  '@ringcentral-integration/phone-number',
  '@ringcentral-integration/glip-widgets',
];
const releaseBranchNames = [
  'commons-release',
  'widgets-release',
  'i18n-release',
  'locale-loader-release',
  'phone-number-release',
  'glip-widgets-release',
];

const args = process.argv.slice(2);
const packageName = args[0];
if (!packageNames.includes(packageName)) {
  console.log('package name invalid!');
  process.exit(1);
}
const releaseBranchName = args[1];
if (!releaseBranchNames.includes(releaseBranchName)) {
  console.log('releaseBranchName name invalid!');
  process.exit(1);
}

startRelease(packageName, releaseBranchName);<commit_msg>fix: core release script (#1625)<commit_after>import { startRelease } from './releaseHelpers';

const packageNames = [
  'ringcentral-integration',
  'ringcentral-widgets',
  '@ringcentral-integration/i18n',
  '@ringcentral-integration/locale-loader',
  '@ringcentral-integration/phone-number',
  '@ringcentral-integration/glip-widgets',
  '@ringcentral-integration/core',
];
const releaseBranchNames = [
  'commons-release',
  'widgets-release',
  'i18n-release',
  'locale-loader-release',
  'phone-number-release',
  'glip-widgets-release',
  'core-release',
];

const args = process.argv.slice(2);
const packageName = args[0];
if (!packageNames.includes(packageName)) {
  console.log('package name invalid!');
  process.exit(1);
}
const releaseBranchName = args[1];
if (!releaseBranchNames.includes(releaseBranchName)) {
  console.log('releaseBranchName name invalid!');
  process.exit(1);
}

startRelease(packageName, releaseBranchName);
{'fraction_non_alphanumeric': 0.15783664459161148, 'fraction_numerical': 0.012141280353200883, 'mean_word_length': 5.919847328244275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4191806', 'n_tokens_mistral': 597, 'n_tokens_neox': 579, 'n_words': 91}