()
| 109 | }; |
| 110 | |
| 111 | const resolveGitHubRepository = (): string => { |
| 112 | const repository = process.env.GH_REPO?.trim() || process.env.GITHUB_REPOSITORY?.trim(); |
| 113 | if (!repository) { |
| 114 | throw new Error("Set GH_REPO or GITHUB_REPOSITORY before creating a GitHub release."); |
| 115 | } |
| 116 | |
| 117 | return repository; |
| 118 | }; |
| 119 | |
| 120 | const packWrapperPackage = async (): Promise<string> => { |
| 121 | if (!existsSync(wrapperDir)) { |