()
| 134 | }; |
| 135 | |
| 136 | const resolveGitHubRepository = (): string => { |
| 137 | const repository = process.env.GH_REPO?.trim() || process.env.GITHUB_REPOSITORY?.trim(); |
| 138 | if (!repository) { |
| 139 | throw new Error("Set GH_REPO or GITHUB_REPOSITORY before creating a GitHub release."); |
| 140 | } |
| 141 | |
| 142 | return repository; |
| 143 | }; |
| 144 | |
| 145 | const packWrapperPackage = async (): Promise<string> => { |
| 146 | if (!existsSync(wrapperDir)) { |