Yargs command handler for recovering a CI publish run.
(args: Arguments<ReleaseRecoverCiPublishOptions>)
| 42 | |
| 43 | /** Yargs command handler for recovering a CI publish run. */ |
| 44 | async function handler(args: Arguments<ReleaseRecoverCiPublishOptions>) { |
| 45 | const git = await AuthenticatedGitClient.get(); |
| 46 | const config = await getConfig(); |
| 47 | assertValidReleaseConfig(config); |
| 48 | assertValidGithubConfig(config); |
| 49 | |
| 50 | const tool = new ReleaseRecoverCiPublishTool(git, config.release, config.github, args.runId, { |
| 51 | dryRun: args.dryRun, |
| 52 | publishRegistry: args.publishRegistry, |
| 53 | }); |
| 54 | |
| 55 | await tool.run(); |
| 56 | } |
| 57 | |
| 58 | /** CLI command module for recovering a failed GHA publish run locally. */ |
| 59 | export const ReleaseRecoverCiPublishCommandModule: CommandModule< |
nothing calls this directly
no test coverage detected