mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 01:01:38 +08:00
fix tests and update documentation
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user