Skip to content
Permalink
Browse files

Update release script to output release ID

  • Loading branch information...
yhatt committed May 7, 2019
1 parent 1561d77 commit 1ea47d766cdcceeb8c9f84499c677e49696ac973
Showing with 15 additions and 9 deletions.
  1. +15 −9 github-release.js
@@ -53,12 +53,18 @@ if (!token || !user || !repo) {
process.exit(1)
}

execFileSync('curl', [
'-H',
'Accept: application/vnd.github.v3+json',
'-H',
`Authorization: token ${token}`,
'-d',
JSON.stringify(data),
entry,
])
const ret = JSON.parse(
execFileSync('curl', [
'-sS',
'-H',
'Accept: application/vnd.github.v3+json',
'-H',
`Authorization: token ${token}`,
'-d',
JSON.stringify(data),
entry,
])
)

// Output release ID for GitHub release API
console.log(ret.id)

0 comments on commit 1ea47d7

Please sign in to comment.
You can’t perform that action at this time.