From 5da6bb05ba85074aacc9a44e994d03f4e891d8bd Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Thu, 18 Feb 2021 16:12:32 -0800 Subject: [PATCH] Updates beta release script to display current beta version (#4605) --- scripts/gulpfiles/release_tasks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/gulpfiles/release_tasks.js b/scripts/gulpfiles/release_tasks.js index 736620bda..5e14fc08c 100644 --- a/scripts/gulpfiles/release_tasks.js +++ b/scripts/gulpfiles/release_tasks.js @@ -126,8 +126,9 @@ function updateBetaVersion(done) { var newVersion = null; var blocklyVersions = JSON.parse(execSync('npm view blockly versions --json').toString()); var re = new RegExp(/-beta\.(\d)/); + var latestBetaVersion = execSync('npm show blockly version --tag beta').toString().trim(); while(!isValid) { - newVersion = readlineSync.question('What is the new beta version? (ex: 3.20201217.0-beta.0)'); + newVersion = readlineSync.question(`What is the new beta version? (latest beta version: ${latestBetaVersion})`); var existsOnNpm = blocklyVersions.indexOf(newVersion) > -1; var isFormatted = newVersion.search(re) > -1; if (!existsOnNpm && isFormatted) {