Skip to content

Commit 16135ee

Browse files
authored
fix(ci): add missing await (#5937)
Today in "Things that would have been prevented by TypeScript" :)
1 parent 656e930 commit 16135ee

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

scripts/release.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ program
3636
if (!options.submitter) {
3737
throw new Error('submitter is required');
3838
}
39-
const publisher = getReleasePublisher(options.submitter);
39+
const publisher = await getReleasePublisher(options.submitter);
4040

4141
const nextGa = options.nextGa || (await getNextGaVersionInJira());
4242

@@ -92,7 +92,7 @@ program
9292
if (!options.submitter) {
9393
throw new Error('submitter is required');
9494
}
95-
const publisher = getReleasePublisher(options.submitter);
95+
const publisher = await getReleasePublisher(options.submitter);
9696

9797
const nextGa = await getReleaseVersionFromTicket(options.releaseTicket);
9898

@@ -195,10 +195,14 @@ async function bumpAndPush(nextVersion, releaseBranch, publisher) {
195195
});
196196
await fs.writeFile(
197197
compassPackageJsonPath,
198-
JSON.stringify({
199-
...JSON.parse(await fs.readFile(compassPackageJsonPath, 'utf8')),
200-
releasePublisher: publisher,
201-
})
198+
JSON.stringify(
199+
{
200+
...JSON.parse(await fs.readFile(compassPackageJsonPath, 'utf8')),
201+
releasePublisher: publisher,
202+
},
203+
null,
204+
2
205+
)
202206
);
203207
await execFile('git', ['add', compassPackageJsonPath, `package-lock.json`], {
204208
cwd: monorepoRoot,

0 commit comments

Comments
 (0)