From 82ba604b9966e7e2da8294a033ec4bf11abe7918 Mon Sep 17 00:00:00 2001 From: GyDi Date: Wed, 19 Jan 2022 00:42:37 +0800 Subject: [PATCH] fix: script error --- scripts/release.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/release.mjs b/scripts/release.mjs index cdb2943..9be269f 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -34,7 +34,11 @@ async function resolveRelease() { const github = getOctokit(process.env.GITHUB_TOKEN); - const release = await github.rest.repos.getReleaseByTag("update"); + const release = await github.rest.repos.getReleaseByTag({ + owner: context.repo.owner, + repo: context.repo.repo, + tag: "update", + }); const { data: assets } = await github.rest.repos.listReleaseAssets({ owner: context.repo.owner, repo: context.repo.repo,