From 67b052fb58225f4c15f9ce4397d73e7cc595fa3a Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 18 May 2024 23:30:35 +0900 Subject: [PATCH] fix publish --- build/publish.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/publish.js b/build/publish.js index 73e82e9..846b177 100644 --- a/build/publish.js +++ b/build/publish.js @@ -23,12 +23,12 @@ async function downloadFile(name, url, filepath) { } async function main() { - const latest = await github.getLatestRelease({ + const data = await github.getLatestRelease({ owner, repo, }); const vsixFilenames = await Promise.all( - latest.data.assets + data.assets .filter(({name}) => name?.endsWith('.vsix')) .map(({name, browser_download_url}) => downloadFile(name, browser_download_url, 'dist')) );