From b2c9de60ff329524dc7d384e30f02d2521d47517 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Thu, 6 Mar 2025 15:49:30 +0100 Subject: [PATCH] chore: remove gh auth login --- scripts/ci/codegen/pushToRepository.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/ci/codegen/pushToRepository.ts b/scripts/ci/codegen/pushToRepository.ts index f8ebe63a7ed..cb213bf7628 100644 --- a/scripts/ci/codegen/pushToRepository.ts +++ b/scripts/ci/codegen/pushToRepository.ts @@ -2,7 +2,6 @@ import fsp from 'fs/promises'; import path, { resolve } from 'path'; import { - CI, configureGitHubAuthor, ensureGitHubToken, exists, @@ -91,6 +90,8 @@ async function pushToRepository(repository: string, config: RepositoryConfigurat .filter(Boolean); if (!process.env.FORCE && !lastCommitMessage.startsWith(commitStartRelease)) { + console.warn('FORCE not provided or not a commit release, skipping'); + return; } @@ -170,10 +171,6 @@ if (import.meta.url.endsWith(process.argv[1])) { setVerbose(false); const repositories = process.argv.slice(2) as Array; - if (CI) { - await run(`echo ${ensureGitHubToken()} | gh auth login --with-token`); - } - await Promise.allSettled( Object.entries(pushToRepositoryConfiguration).map(([name, config]) => { if (repositories.length === 0 || repositories.includes(name)) {