1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Require setting type flag for new Android releases

This commit is contained in:
Laurent Cozic 2020-09-22 16:36:46 +01:00
parent e9de9d9128
commit d86f6a1fbd

View File

@ -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...');