Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into beta-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 17, 2024
2 parents b9040a0 + 65d810e commit 838adfa
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ program
if (!options.submitter) {
throw new Error('submitter is required');
}
const publisher = getReleasePublisher(options.submitter);
const publisher = await getReleasePublisher(options.submitter);

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

Expand Down Expand Up @@ -92,7 +92,7 @@ program
if (!options.submitter) {
throw new Error('submitter is required');
}
const publisher = getReleasePublisher(options.submitter);
const publisher = await getReleasePublisher(options.submitter);

const nextGa = await getReleaseVersionFromTicket(options.releaseTicket);

Expand Down Expand Up @@ -195,10 +195,14 @@ async function bumpAndPush(nextVersion, releaseBranch, publisher) {
});
await fs.writeFile(
compassPackageJsonPath,
JSON.stringify({
...JSON.parse(await fs.readFile(compassPackageJsonPath, 'utf8')),
releasePublisher: publisher,
})
JSON.stringify(
{
...JSON.parse(await fs.readFile(compassPackageJsonPath, 'utf8')),
releasePublisher: publisher,
},
null,
2
) + '\n'
);
await execFile('git', ['add', compassPackageJsonPath, `package-lock.json`], {
cwd: monorepoRoot,
Expand Down

0 comments on commit 838adfa

Please sign in to comment.