fix(cli): upload to github releases issue (#1888)

This commit is contained in:
LongYinan 2024-01-03 19:29:33 +08:00 committed by GitHub
parent 57463554e9
commit 3889d8ad17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)