Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand current syntax to support aliases for latest version (current/latest/node) #483

Merged
merged 23 commits into from
May 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert functions exports
  • Loading branch information
panticmilos committed Apr 27, 2022
commit e95e27a06b462537b57fedc85424d7e9eb8725c4
8 changes: 4 additions & 4 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function resolveLtsAliasFromManifest(
return release.version.split('.')[0];
}

export async function getInfoFromManifest(
async function getInfoFromManifest(
versionSpec: string,
stable: boolean,
auth: string | undefined,
Expand All @@ -264,7 +264,7 @@ export async function getInfoFromManifest(
return info;
}

export async function getInfoFromDist(
async function getInfoFromDist(
versionSpec: string,
arch: string = os.arch()
): Promise<INodeVersionInfo | null> {
Expand Down Expand Up @@ -321,7 +321,7 @@ async function resolveVersionFromManifest(
}

// TODO - should we just export this from @actions/tool-cache? Lifted directly from there
export function evaluateVersions(versions: string[], versionSpec: string): string {
function evaluateVersions(versions: string[], versionSpec: string): string {
let version = '';
core.debug(`evaluating ${versions.length} versions`);
versions = versions.sort((a, b) => {
Expand All @@ -348,7 +348,7 @@ export function evaluateVersions(versions: string[], versionSpec: string): strin
return version;
}

export async function queryDistForMatch(
async function queryDistForMatch(
versionSpec: string,
arch: string = os.arch()
): Promise<string> {
Expand Down