diff --git a/Tools/release-android.js b/Tools/release-android.js index ccecc195c..f2e79807b 100644 --- a/Tools/release-android.js +++ b/Tools/release-android.js @@ -151,7 +151,9 @@ async function createRelease(name, tagName, version) { async function main() { const argv = require('yargs').argv; - const isPreRelease = !!argv.prerelease; + if (!['release', 'prerelease'].includes(argv.type)) throw new Error('Must specify release type. Either --type=release or --type=prerelease'); + + const isPreRelease = argv.type === 'prerelease'; if (isPreRelease) console.info('Creating pre-release'); console.info('Updating version numbers in build.gradle...');