From a83e0c033f49d806603ec1ad2ed148e98e9923ad Mon Sep 17 00:00:00 2001 From: Sebastian Tiedtke Date: Thu, 8 Dec 2022 09:31:42 -0500 Subject: [PATCH] Safety measure --- .github/scripts/downloadWasm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/downloadWasm.js b/.github/scripts/downloadWasm.js index db892a62a..0787aa7ac 100644 --- a/.github/scripts/downloadWasm.js +++ b/.github/scripts/downloadWasm.js @@ -47,7 +47,7 @@ async function downloadWasm (token) { const releases = await octokit.repos.listReleases({ owner, repo }) const release = wasmReleaseDefined ? releases.data.find((r) => r.tag_name === process.env.RUNME_VERSION) - : releases.data[0] + : releases.data.filter(r => r.prerelease === false)[0] if (wasmReleaseDefined && !release) { throw new Error(