report early if we dont have github data set up

This commit is contained in:
igor 2016-08-18 23:54:31 +03:00
parent 7308d7be94
commit d134d43915

View File

@ -14,6 +14,10 @@ function isBrokenBuild (nodeVersion, targetArch) {
}
export async function main () {
if (!process.env.GITHUB_USERNAME) {
throw new Error('No github credentials. Upload will fail!');
}
for (const nodeVersion in patchesJson) {
for (const targetArch of targetArchs) {
if (isBrokenBuild(nodeVersion, targetArch)) continue;