Added details to deploy script

This commit is contained in:
Kasra Bigdeli
2019-01-18 23:59:10 -08:00
parent f3a9091152
commit feec2385e5

View File

@@ -58,7 +58,7 @@ exec('npm run build')
throw new Error(data)
}
return exec (`rm -rf ./build`)
return exec(`rm -rf ./build`)
})
.then(function () {
@@ -122,6 +122,7 @@ exec('npm run build')
}
if (!isVersionValid || !highestTagValue || !version) {
console.log(`isVersionValid: ${isVersionValid} highestTagValue: ${highestTagValue}`)
throw new Error('The version you are pushing is not valid! ' + version);
}