mirror of
https://github.com/actions/setup-node.git
synced 2025-07-04 00:24:58 +00:00
fix if check
This commit is contained in:
parent
a4ae07903c
commit
e7c919e11c
2 changed files with 7 additions and 7 deletions
8
dist/setup/index.js
vendored
8
dist/setup/index.js
vendored
|
@ -73479,12 +73479,12 @@ function evaluateVersions(versions, versionSpec) {
|
|||
}
|
||||
function getNodejsDistUrl(version) {
|
||||
const prerelease = semver.prerelease(version);
|
||||
if (!prerelease || !prerelease.length) {
|
||||
return 'https://nodejs.org/dist';
|
||||
}
|
||||
else if (version.includes('nightly')) {
|
||||
if (version.includes('nightly')) {
|
||||
return 'https://nodejs.org/download/nightly';
|
||||
}
|
||||
else if (!prerelease) {
|
||||
return 'https://nodejs.org/dist';
|
||||
}
|
||||
else {
|
||||
return 'https://nodejs.org/download/rc';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue