fix(cli): upload to github releases issue (#1888)
This commit is contained in:
parent
57463554e9
commit
3889d8ad17
1 changed files with 2 additions and 1 deletions
|
@ -192,7 +192,8 @@ export async function prePublish(userOptions: PrePublishOptions) {
|
|||
'content-length': dstFileStats.size,
|
||||
'content-type': 'application/octet-stream',
|
||||
},
|
||||
data: await readFileAsync(dstPath, { encoding: 'utf-8' }),
|
||||
// @ts-expect-error octokit types are wrong
|
||||
data: await readFileAsync(dstPath),
|
||||
})
|
||||
debug.info(`GitHub release created`)
|
||||
debug.info(`Download URL: %s`, assetInfo.data.browser_download_url)
|
||||
|
|
Loading…
Reference in a new issue