fix: revert fh.readableWebStream change

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2025-06-10 18:25:06 -04:00
parent eaae3e764f
commit 68ad78f999
No known key found for this signature in database
GPG key ID: 6577287BDCA70840
5 changed files with 12 additions and 16 deletions

View file

@ -1,9 +1,9 @@
import { GitHub } from "@actions/github/lib/utils";
import { Config, isTag, releaseBody, alignAssetName } from "./util";
import { statSync } from "fs";
import { open } from "fs/promises";
import { lookup } from "mime-types";
import { basename } from "path";
import { alignAssetName, Config, isTag, releaseBody } from "./util";
type GitHub = InstanceType<typeof GitHub>;
@ -188,7 +188,7 @@ export const upload = async (
"content-type": mime,
authorization: `token ${config.github_token}`,
},
data: fh.readableWebStream(),
data: fh.readableWebStream({ type: "bytes" }),
});
const json = resp.data;
if (resp.status !== 201) {