Comparing version 0.3.1 to 0.3.2
10
index.js
@@ -59,5 +59,5 @@ var npm = require('npm'), | ||
log.info('running in travis'); | ||
var npmUserCredentials = npmUserCredentials(); | ||
if (npmUserCredentials) { | ||
npmAddUser(npmUserCredentials, function(err) { | ||
var npmUser = npmUserCredentials(); | ||
if (npmUser) { | ||
npmAddUser(npmUser, function(err) { | ||
if (err) { | ||
@@ -104,4 +104,4 @@ callback('error while trying to add npm user in travis: ' + err); | ||
function npmAddUser(username, password, email, callback) { | ||
npm.registry.adduser(username, password, email, function(err) { | ||
function npmAddUser(npmUser, callback) { | ||
npm.registry.adduser(npmUser.username, npmUser.password, npmUser.email, function(err) { | ||
callback(err); | ||
@@ -108,0 +108,0 @@ }); |
{ | ||
"name": "publish", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "npm auto publishing of your modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
12908