From e2218116ae51c42c4510edf6bfe603b6d23eea10 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 28 Dec 2023 20:31:07 +0530 Subject: [PATCH] pick right tag --- gulpfile.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2c33fee48c..366adf87a5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -18,14 +18,13 @@ task('publishTagfromBeta', async function () { console.log(cmdOp.stdout) cmdOp = await promisifyExec(`git pull origin remix_beta`) console.log(cmdOp.stdout) - const betaPackageJSON = require('./package.json'); + const betaPackageJSON = fs.readFileSync(__dirname + '/package.json', 'utf8') const tag = "v" + betaPackageJSON.version console.log(`Creating tag ${tag} from remix_beta branch`) - console.log(fs.readFileSync(__dirname + '/package.json', 'utf8')) - // cmdOp = await promisifyExec(`git tag ${tag}`); - // console.log(cmdOp.stdout) - // cmdOp = await promisifyExec(`git push --tags`); - // console.log(cmdOp.stdout) + cmdOp = await promisifyExec(`git tag ${tag}`) + console.log(cmdOp.stdout) + cmdOp = await promisifyExec(`git push --tags`) + console.log(cmdOp.stdout) }catch(error) { console.error(error) }