index.js
function publishToNpm() {
        return new Promise(function(resolve, reject) {
          _spork('npm', ['publish'], done, _.partial(reject, new Error('failed to publish to npm')));

          function done() {
            if (!options.quiet) {
              gutil.log('Published to \'' + chalk.cyan('npm') + '\'');
            }

            resolve();
          }
        });
      }
function publishToNpm() {
        return new Promise(function(resolve, reject) {
          _spork('npm', ['publish'], done, _.partial(reject, new Error('failed to publish to npm')));

          function done() {
            if (!options.quiet) {
              gutil.log('Published to \'' + chalk.cyan('npm') + '\'');
            }

            resolve();
          }
        });
      }
function publishToNpm ( ) { return new Promise ( function ( resolve , reject ) { _spork ( 'npm' , [ 'publish' ] , done , _ . partial ( reject , new Error ( 'failed to publish to npm' ) ) ) ; function done ( ) { if ( ! options . quiet ) { gutil . log ( 'Published to \'' + chalk . cyan ( 'npm' ) + '\'' ) ; } resolve ( ) ; } } ) ; }
Publish the current codebase to npm.

@return {Bluebird promise} - Resolves or rejects (with nothing) based on the status of the `git` commands.
Publish the current codebase to npm .