Fix for getting a bad archive for releases

This commit is contained in:
Greg 2021-08-24 16:44:06 -06:00
parent 479a3d9ee2
commit 671de68fa2
2 changed files with 3 additions and 3 deletions

View File

@ -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 );
} }
} }
}) })