@theholocron/cli 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -37705,6 +37705,11 @@ const moveTagArgs = (y) => y.positional("group", {
37705
37705
  describe: "The remote to push the moved tag to"
37706
37706
  });
37707
37707
  // src/commands/move-tag/move-tag.command.ts
37708
+ /** The release job's `GITHUB_TOKEN`, as the push's token; nothing when it is not set (a person's own git works). */
37709
+ function tokenOption() {
37710
+ const token = createEnvLookup().get("GITHUB_TOKEN");
37711
+ return token ? { token } : {};
37712
+ }
37708
37713
  const moveTagCommand = {
37709
37714
  command: "tag [group] [release]",
37710
37715
  describe: "Move a version group's major tag (ci-v1) to its latest stable release (semantic-release publishCmd)",
@@ -37716,6 +37721,7 @@ const moveTagCommand = {
37716
37721
  cwd: argv.cwd,
37717
37722
  dryRun: argv.dryRun,
37718
37723
  remote: argv.remote,
37724
+ ...tokenOption(),
37719
37725
  ...argv.release ? { version: argv.release } : {}
37720
37726
  })).status === "fail") process.exitCode = 1;
37721
37727
  }