Skip to content

Commit

Permalink
Merge pull request #80 from stateful/skip-pre-releases
Browse files Browse the repository at this point in the history
Make sure dev won't accidentally bleed into releases
  • Loading branch information
sourishkrout authored Dec 8, 2022
2 parents 923b169 + a83e0c0 commit dc461f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/downloadWasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit dc461f9

Please sign in to comment.