Skip to content

Commit 98b6a74

Browse files
authored
chore: fix scheduled release (#741)
1 parent 339b803 commit 98b6a74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/release/createReleasePR.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ import {
1515
getOctokit,
1616
ensureGitHubToken,
1717
TODAY,
18+
CI,
1819
} from '../common';
1920
import { getPackageVersionDefault } from '../config';
2021

21-
import { RELEASED_TAG } from './common';
22+
import { configureGitHubAuthor, RELEASED_TAG } from './common';
2223
import TEXT from './text';
2324
import type {
2425
Versions,
@@ -346,6 +347,10 @@ async function createReleasePR(): Promise<void> {
346347
}
347348
}
348349

350+
if (CI) {
351+
await configureGitHubAuthor();
352+
}
353+
349354
await run(`git rev-parse --verify refs/tags/${RELEASED_TAG}`, {
350355
errorMessage: '`released` tag is missing in this repository.',
351356
});

0 commit comments

Comments
 (0)