From 3889d8ad17d98c99f5ff9a8fd850d216e6fce40a Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 3 Jan 2024 19:29:33 +0800 Subject: [PATCH] fix(cli): upload to github releases issue (#1888) --- cli/src/api/pre-publish.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/api/pre-publish.ts b/cli/src/api/pre-publish.ts index b2e27afa..78090f9f 100644 --- a/cli/src/api/pre-publish.ts +++ b/cli/src/api/pre-publish.ts @@ -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)