From 068e1e00af8376cc786dd082b2a7b7ed8c84825c Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 20 Apr 2020 17:53:08 -0700 Subject: [PATCH] devops: fix next version generation --- utils/update_version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/update_version.js b/utils/update_version.js index a0838672e3e7e..595dcc4440cc5 100755 --- a/utils/update_version.js +++ b/utils/update_version.js @@ -47,7 +47,7 @@ if (version === '--next') { const packageJSON = require('../package.json'); version = packageJSON.version; const dashIndex = version.indexOf('-'); - if (dashIndex === -1) + if (dashIndex !== -1) version = version.substring(0, dashIndex); version += '-next.' + Date.now(); console.log('Setting version to ' + version);