Yargs command builder for configuring the `ng-dev release recover-ci-publish` command.
(argv: Argv)
| 23 | |
| 24 | /** Yargs command builder for configuring the `ng-dev release recover-ci-publish` command. */ |
| 25 | function builder(argv: Argv): Argv<ReleaseRecoverCiPublishOptions> { |
| 26 | return addGithubTokenOption(argv) |
| 27 | .positional('run-id', { |
| 28 | type: 'number', |
| 29 | demandOption: true, |
| 30 | description: 'The GitHub Actions workflow run ID containing the release packages to recover.', |
| 31 | }) |
| 32 | .option('dry-run', { |
| 33 | type: 'boolean', |
| 34 | default: false, |
| 35 | description: 'Run the recovery process in dry-run mode (skips actual publishing).', |
| 36 | }) |
| 37 | .option('publish-registry', { |
| 38 | type: 'string', |
| 39 | description: 'NPM registry URL to publish packages to (overrides config).', |
| 40 | }) as unknown as Argv<ReleaseRecoverCiPublishOptions>; |
| 41 | } |
| 42 | |
| 43 | /** Yargs command handler for recovering a CI publish run. */ |
| 44 | async function handler(args: Arguments<ReleaseRecoverCiPublishOptions>) { |
nothing calls this directly
no test coverage detected