code: function validate () {
      if (exec('npm whoami') !== 'angular') {
        err('You must be authenticated with npm as "angular" to perform a release.');
      } else if (exec('git rev-parse --abbrev-ref HEAD') !== 'staging') {
        err('Releases can only performed from "staging" at this time.');
      } else {
        return true;
      }
      function err (msg) {
        const str = 'Error: ' + msg;
        log(str.red);
      }
    }
docs: utility methods confirms that you will be able to perform the release before attempting