Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions scripts/ci/codegen/pushToRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fsp from 'fs/promises';
import path, { resolve } from 'path';

import {
CI,
configureGitHubAuthor,
ensureGitHubToken,
exists,
Expand Down Expand Up @@ -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;
}

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

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)) {
Expand Down
Loading