Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Commit

Permalink
show api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiip committed Jul 20, 2016
1 parent 7a45064 commit 79d1b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const githubUploadUrl = 'https://uploads.github.com/repos/FountainJS/fountain';

function exec(command, args) {
const result = spawn.sync(command, args);
console.log(result.stdout.toString());
try {
return JSON.parse(result.stdout.toString());
} catch (error) {
Expand Down Expand Up @@ -37,7 +38,6 @@ function githubUploadRequest(partialUrl, params) {
githubUploadUrl + partialUrl
]);
}

githubApiRequest('/releases', {
method: 'POST',
body: JSON.stringify({tag_name: process.env.TRAVIS_TAG}) // eslint-disable-line camelcase
Expand Down

0 comments on commit 79d1b49

Please sign in to comment.