Fix for getting a bad archive for releases
This commit is contained in:
parent
479a3d9ee2
commit
671de68fa2
|
@ -64,11 +64,11 @@ const getLatestReleaseZipUrl = async ( owner, repository, getPrerelease = false,
|
||||||
// Loop until we find the first pre-release, then return it.
|
// Loop until we find the first pre-release, then return it.
|
||||||
body.forEach(release => {
|
body.forEach(release => {
|
||||||
if ( release.prerelease ) {
|
if ( release.prerelease ) {
|
||||||
resolve( release.zipball_url );
|
resolve( release.assets[0].browser_download_url );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
resolve( body.zipball_url );
|
resolve( body.assets[0].browser_download_url );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue