packages/scripts/promoteRelease.js
/**
 * Write release variables to be used by CI
 *
 * @param {object} vars object describing CI variables
 */
Write release variables to be used by CI
@param {object} vars object describing CI variables
Write release variables to be used by CI @param { object } vars object describing CI variables
async function writeAdoVariables(vars) {
  const adoPath = await findUp('.ado', {type: 'directory'});
  const releaseVariablesPath = path.join(adoPath, 'variables', 'release.yml');
  const releaseVariablesContent =
    '# Warning: This file is autogenerated by packages/scripts/promoteRelease.js\n' +
    yaml.dump({variables: vars});
  await fs.promises.writeFile(releaseVariablesPath, releaseVariablesContent);
}
async function writeAdoVariables ( vars ) { const adoPath = await findUp ( '.ado' , { type : 'directory' } ) ; const releaseVariablesPath = path . join ( adoPath , 'variables' , 'release.yml' ) ; const releaseVariablesContent = '# Warning: This file is autogenerated by packages/scripts/promoteRelease.js\n' + yaml . dump ( { variables : vars } ) ; await fs . promises . writeFile ( releaseVariablesPath , releaseVariablesContent ) ; }
Write release variables to be used by CI
 @param {object} vars object describing CI variables
Write release variables to be used by CI @param { object } vars object describing CI variables