Skip to content

Commit 2f6888c

Browse files
authored
chore: remove gh auth login (#4565)
1 parent 63a50ac commit 2f6888c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/ci/codegen/pushToRepository.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import fsp from 'fs/promises';
22
import path, { resolve } from 'path';
33

44
import {
5-
CI,
65
configureGitHubAuthor,
76
ensureGitHubToken,
87
exists,
@@ -91,6 +90,8 @@ async function pushToRepository(repository: string, config: RepositoryConfigurat
9190
.filter(Boolean);
9291

9392
if (!process.env.FORCE && !lastCommitMessage.startsWith(commitStartRelease)) {
93+
console.warn('FORCE not provided or not a commit release, skipping');
94+
9495
return;
9596
}
9697

@@ -170,10 +171,6 @@ if (import.meta.url.endsWith(process.argv[1])) {
170171
setVerbose(false);
171172
const repositories = process.argv.slice(2) as Array<string>;
172173

173-
if (CI) {
174-
await run(`echo ${ensureGitHubToken()} | gh auth login --with-token`);
175-
}
176-
177174
await Promise.allSettled(
178175
Object.entries(pushToRepositoryConfiguration).map(([name, config]) => {
179176
if (repositories.length === 0 || repositories.includes(name)) {

0 commit comments

Comments
 (0)