Comparing version 2.1.2 to 2.1.3
@@ -23,8 +23,7 @@ 'use strict'; | ||
readjson(name, function(error, json) { | ||
if (error) { | ||
callback(error); | ||
} else { | ||
token = json.token; | ||
fn(); | ||
} | ||
if (error) | ||
return callback(error); | ||
token = json.token; | ||
fn(); | ||
}); | ||
@@ -37,21 +36,20 @@ }); | ||
if (!token) { | ||
callback(Error(ERROR_TOKEN)); | ||
} else { | ||
github.authenticate({ | ||
type: 'oauth', | ||
token: token | ||
}); | ||
if (!token) | ||
return callback(Error(ERROR_TOKEN)); | ||
github.repos.createRelease({ | ||
owner : options.user, | ||
repo : options.repo, | ||
tag_name : options.tag, | ||
target_commitish : options.target_commitish, | ||
name : options.name, | ||
body : options.body, | ||
prerelease : options.prerelease | ||
}, callback); | ||
} | ||
github.authenticate({ | ||
type: 'oauth', | ||
token: token | ||
}); | ||
github.repos.createRelease({ | ||
owner : options.user, | ||
repo : options.repo, | ||
tag_name : options.tag, | ||
target_commitish : options.target_commitish, | ||
name : options.name, | ||
body : options.body, | ||
prerelease : options.prerelease | ||
}, callback); | ||
} | ||
{ | ||
"name": "grizzly", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "create release on github", | ||
@@ -32,3 +32,3 @@ "main": "lib/grizzly.js", | ||
"execon": "^1.2.0", | ||
"github": "^8.0.0", | ||
"github": "^9.0.0", | ||
"minimist": "^1.2.0", | ||
@@ -35,0 +35,0 @@ "os-homedir": "^1.0.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10541
132
+ Addedgithub@9.3.1(transitive)
- Removedgithub@8.2.1(transitive)
Updatedgithub@^9.0.0