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

Loading…
Cancel
Save