Skip to content

Commit

Permalink
fix: Update GitHub authorization (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Oct 23, 2021
1 parent aa2d0bc commit 47096be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ export function publishRelease(nextVersion, commit, notes) {
const req = request({
hostname: 'api.github.com',
port: 443,
path: `/repos/${repo}/releases?access_token=${token}`,
path: `/repos/${repo}/releases`,
method: "POST",
headers: {
"Content-Type": "application/json; charset=utf-8",
"Content-Length": data.length,
"User-Agent": "aspublish"
"User-Agent": "aspublish",
"Authorization": `token ${token}`
}
}, res => {
const chunks = [];
Expand Down

0 comments on commit 47096be

Please sign in to comment.