async function performUpdate(actionInputs) {
    const repositoryUrl = await getRepositoryHttpsUrl();
    // Get all git tags. An error is thrown if "git tag" returns no tags and the
    // local git history is incomplete.
    const [tags] = await getTags();
    const rawRootManifest = await (0,dist.getPackageManifest)(WORKSPACE_ROOT);
    const rootManifest = (0,dist.validatePackageManifestVersion)(rawRootManifest, WORKSPACE_ROOT);
    const { version: currentVersion } = rootManifest;
    // Compute the new version and version diff from the inputs and root manifest
    let newVersion, versionDiff;
    if (actionInputs.ReleaseType) {
        newVersion = inc_default()(currentVersion, actionInputs.ReleaseType);
        versionDiff = actionInputs.ReleaseType;
    }
    else {
        newVersion = actionInputs.ReleaseVersion;
        versionDiff = diff_default()(currentVersion, newVersion);
    }
    // Ensure that the new version is greater than the current version, and that
    // there's no existing tag for it.
    validateVersion(currentVersion, newVersion, tags);
    if (dist.ManifestFieldNames.Workspaces in rootManifest) {
        console.log('Project appears to have workspaces. Applying monorepo workflow.');
        await updateMonorepo(newVersion, versionDiff, (0,dist.validateMonorepoPackageManifest)(rootManifest, WORKSPACE_ROOT), repositoryUrl, tags);
    }
    else {
        console.log('Project does not appear to have any workspaces. Applying polyrepo workflow.');
        await updatePolyrepo(newVersion, (0,dist.validatePackageManifestName)(rootManifest, WORKSPACE_ROOT), repositoryUrl);
    }
    (0,core.setOutput)('NEW_VERSION', newVersion);
}
/**
 * Action entry function. Gets git tags, reads the work space root package.json,
 * and updates the package(s) of the repository per the Action inputs.
 *
 * @see updateMonorepo - For details on monorepo workflow.
 * @see updatePolyrepo - For details on polyrepo (i.e. single-package
 * repository) workflow.
 */
Action entry function. Gets git tags, reads the work space root package.json,
and updates the package(s) of the repository per the Action inputs.

@see updateMonorepo - For details on monorepo workflow.
@see updatePolyrepo - For details on polyrepo  workflow.
Action entry function . Gets git tags reads the work space root package . json and updates the package ( s ) of the repository per the Action inputs . @see updateMonorepo - For details on monorepo workflow . @see updatePolyrepo - For details on polyrepo workflow .
async function performUpdate(actionInputs) {
    const repositoryUrl = await getRepositoryHttpsUrl();
    const [tags] = await getTags();
    const rawRootManifest = await (0,dist.getPackageManifest)(WORKSPACE_ROOT);
    const rootManifest = (0,dist.validatePackageManifestVersion)(rawRootManifest, WORKSPACE_ROOT);
    const { version: currentVersion } = rootManifest;
    let newVersion, versionDiff;
    if (actionInputs.ReleaseType) {
        newVersion = inc_default()(currentVersion, actionInputs.ReleaseType);
        versionDiff = actionInputs.ReleaseType;
    }
    else {
        newVersion = actionInputs.ReleaseVersion;
        versionDiff = diff_default()(currentVersion, newVersion);
    }
    validateVersion(currentVersion, newVersion, tags);
    if (dist.ManifestFieldNames.Workspaces in rootManifest) {
        console.log('Project appears to have workspaces. Applying monorepo workflow.');
        await updateMonorepo(newVersion, versionDiff, (0,dist.validateMonorepoPackageManifest)(rootManifest, WORKSPACE_ROOT), repositoryUrl, tags);
    }
    else {
        console.log('Project does not appear to have any workspaces. Applying polyrepo workflow.');
        await updatePolyrepo(newVersion, (0,dist.validatePackageManifestName)(rootManifest, WORKSPACE_ROOT), repositoryUrl);
    }
    (0,core.setOutput)('NEW_VERSION', newVersion);
}
async function performUpdate ( actionInputs ) { const repositoryUrl = await getRepositoryHttpsUrl ( ) ; const [ tags ] = await getTags ( ) ; const rawRootManifest = await ( 0 , dist . getPackageManifest ) ( WORKSPACE_ROOT ) ; const rootManifest = ( 0 , dist . validatePackageManifestVersion ) ( rawRootManifest , WORKSPACE_ROOT ) ; const { version : currentVersion } = rootManifest ; let newVersion , versionDiff ; if ( actionInputs . ReleaseType ) { newVersion = inc_default ( ) ( currentVersion , actionInputs . ReleaseType ) ; versionDiff = actionInputs . ReleaseType ; } else { newVersion = actionInputs . ReleaseVersion ; versionDiff = diff_default ( ) ( currentVersion , newVersion ) ; } validateVersion ( currentVersion , newVersion , tags ) ; if ( dist . ManifestFieldNames . Workspaces in rootManifest ) { console . log ( 'Project appears to have workspaces. Applying monorepo workflow.' ) ; await updateMonorepo ( newVersion , versionDiff , ( 0 , dist . validateMonorepoPackageManifest ) ( rootManifest , WORKSPACE_ROOT ) , repositoryUrl , tags ) ; } else { console . log ( 'Project does not appear to have any workspaces. Applying polyrepo workflow.' ) ; await updatePolyrepo ( newVersion , ( 0 , dist . validatePackageManifestName ) ( rootManifest , WORKSPACE_ROOT ) , repositoryUrl ) ; } ( 0 , core . setOutput ) ( 'NEW_VERSION' , newVersion ) ; }
Action entry function.
Action entry function .
// Get all git tags. An error is thrown if "git tag" returns no tags and the // local git history is incomplete. // Compute the new version and version diff from the inputs and root manifest // Ensure that the new version is greater than the current version, and that // there's no existing tag for it.