mirror of
https://github.com/actions/setup-node.git
synced 2025-07-05 00:53:47 +00:00
fix tests and update documentation
This commit is contained in:
parent
2900876013
commit
ca842d5a5e
5 changed files with 50 additions and 91 deletions
|
@ -443,10 +443,11 @@ export function getNodejsDistUrl(version: string) {
|
|||
const prerelease = semver.prerelease(version);
|
||||
if (version.includes('nightly')) {
|
||||
return 'https://nodejs.org/download/nightly';
|
||||
} else if (!prerelease) {
|
||||
return 'https://nodejs.org/dist';
|
||||
} else if (prerelease) {
|
||||
return 'https://nodejs.org/download/rc';
|
||||
}
|
||||
return 'https://nodejs.org/download/rc';
|
||||
|
||||
return 'https://nodejs.org/dist';
|
||||
}
|
||||
|
||||
async function queryDistForMatch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue