Skip to content

Commit 47096be

Browse files
authored
fix: Update GitHub authorization (#1)
1 parent aa2d0bc commit 47096be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,13 @@ export function publishRelease(nextVersion, commit, notes) {
224224
const req = request({
225225
hostname: 'api.github.com',
226226
port: 443,
227-
path: `/repos/${repo}/releases?access_token=${token}`,
227+
path: `/repos/${repo}/releases`,
228228
method: "POST",
229229
headers: {
230230
"Content-Type": "application/json; charset=utf-8",
231231
"Content-Length": data.length,
232-
"User-Agent": "aspublish"
232+
"User-Agent": "aspublish",
233+
"Authorization": `token ${token}`
233234
}
234235
}, res => {
235236
const chunks = [];

0 commit comments

Comments
 (0)