Skip to content

Instantly share code, notes, and snippets.

@bevacqua
Created January 18, 2014 16:22
Show Gist options
  • Save bevacqua/8492639 to your computer and use it in GitHub Desktop.
Save bevacqua/8492639 to your computer and use it in GitHub Desktop.
Publish packages to `npm` using Gulp.
var spawn = require('child_process').spawn;
gulp.task('npm', function (done) {
spawn('npm', ['publish'], { stdio: 'inherit' }).on('close', done);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment