diff --git a/scripts/release.js b/scripts/release.js index d34f26d4bba..4a0c968e286 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -352,8 +352,11 @@ async function getCIResult() { `https://github.com/gitapi/repos/vuejs/core/actions/runs?head_sha=${sha}` + `&status=success&exclude_pull_requests=true`, ) + /** @type {{ workflow_runs: ({ name: string, conclusion: string })[] }} */ const data = await res.json() - return data.workflow_runs.length > 0 + return data.workflow_runs.some(({ name, conclusion }) => { + return name === 'ci' && conclusion === 'success' + }) } catch { console.error('Failed to get CI status for current commit.') return false