pull/4382/head
aniket-engg 11 months ago committed by Aniket
parent bdd1a75512
commit 91c7a7cf80
  1. 26
      gulpfile.js

@ -13,17 +13,21 @@ var packageJSON = require('./package.json');
* @dev Task to create git tag using version from package.json of remix_beta branch and pushing this specific tag
*/
task('publishTagfromBeta', async function () {
let cmdOp = await promisifyExec(`git checkout remix_beta`)
console.info(cmdOp.stdout)
cmdOp = await promisifyExec(`git pull origin remix_beta`)
console.info(cmdOp.stdout)
const betaPackageJSON = require('./package.json');
const tag = "v" + betaPackageJSON.version
console.info(`Creating tag ${tag} from remix_beta branch`)
cmdOp = await promisifyExec(`git tag ${tag};`);
console.info(cmdOp.stdout)
cmdOp = await promisifyExec(`git push --tags`);
console.info(cmdOp.stdout)
try {
let cmdOp = await promisifyExec(`git checkout remix_beta`)
console.log(cmdOp.stdout)
cmdOp = await promisifyExec(`git pull origin remix_beta`)
console.log(cmdOp.stdout)
const betaPackageJSON = require('./package.json');
const tag = "v" + betaPackageJSON.version
console.log(`Creating tag ${tag} from remix_beta branch`)
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)
}
});
/**

Loading…
Cancel
Save