scripts/release/publish.js
function rollback(newVersion) {
  if (strategy === 'stable') {
    // reset master
    shell.exec('git reset --hard origin/master');
    shell.exec('git checkout develop');
  } else {
    // remove last commit
    shell.exec('git reset --hard HEAD~1');
  }

  // remove local created tag
  shell.exec(`git tag -d v${newVersion}`);
  process.exit(1);
}
function rollback(newVersion) {
  if (strategy === 'stable') {
    // reset master
    shell.exec('git reset --hard origin/master');
    shell.exec('git checkout develop');
  } else {
    // remove last commit
    shell.exec('git reset --hard HEAD~1');
  }

  // remove local created tag
  shell.exec(`git tag -d v${newVersion}`);
  process.exit(1);
}
function rollback ( newVersion ) { if ( strategy === 'stable' ) { // reset master shell . exec ( 'git reset --hard origin/master' ) ; shell . exec ( 'git checkout develop' ) ; } else { // remove last commit shell . exec ( 'git reset --hard HEAD~1' ) ; } // remove local created tag shell . exec ( ` ${ newVersion } ` ) ; process . exit ( 1 ) ; }
called if process aborted before publish, nothing is pushed nor published remove local changes
called if process aborted before publish nothing is pushed nor published remove local changes