| 173 | }; |
| 174 | |
| 175 | const collectReleaseAssetPaths = async ( |
| 176 | wrapperArchivePath: string, |
| 177 | ): Promise<ReadonlyArray<string>> => { |
| 178 | const assetNames = (await readdir(distDir)) |
| 179 | .filter((entry) => /^executor-.*\.(?:tar\.gz|zip)$/.test(entry)) |
| 180 | .sort(); |
| 181 | |
| 182 | return [wrapperArchivePath, ...assetNames.map((entry) => join(distDir, entry))]; |
| 183 | }; |
| 184 | |
| 185 | const githubReleaseExists = async (tag: string, repository: string): Promise<boolean> => { |
| 186 | const proc = Bun.spawn(["gh", "release", "view", tag, "--repo", repository], { |