mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
Stricter check and cleaner messaging
This commit is contained in:
parent
8624ddbdce
commit
48042628a6
3 changed files with 6 additions and 6 deletions
|
@ -193,7 +193,7 @@ export async function getNode(
|
|||
}
|
||||
|
||||
function isLtsAlias(versionSpec: string): boolean {
|
||||
return versionSpec.startsWith('lts');
|
||||
return versionSpec.startsWith('lts/');
|
||||
}
|
||||
|
||||
function getManifest(auth: string | undefined): Promise<tc.IToolRelease[]> {
|
||||
|
@ -210,7 +210,7 @@ function resolveLtsAliasFromManifest(
|
|||
|
||||
if (!alias) {
|
||||
throw new Error(
|
||||
`Unexpected LTS alias '${alias}' for Node version '${versionSpec}'`
|
||||
`Unable to parse LTS alias for Node version '${versionSpec}'`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue