From 2bfee8dc0aad21d34c18b5621745fa7329cb6e5e Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 12 Nov 2020 12:18:20 -0800 Subject: [PATCH] chore: fix publishing @next from release branch (#4418) --- utils/update_version.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/update_version.js b/utils/update_version.js index cfc74724e8..6b8b8b1a0e 100755 --- a/utils/update_version.js +++ b/utils/update_version.js @@ -46,6 +46,8 @@ let version = process.argv[2]; if (version === '--next') { const packageJSON = require('../package.json'); version = packageJSON.version; + if (!version.includes('-')) + version += '-next'; version += '.' + Date.now(); console.log('Setting version to ' + version); } else {