Skip to content

Commit bec2a8c

Browse files
committed
formatting pass
1 parent 9fcbe53 commit bec2a8c

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

scripts/release/release.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ export async function runRelease({
156156
* everything in the publish process except publishing.
157157
*/
158158
if (releaseType === ReleaseType.Staging) {
159-
await publishInCI(packagesToPublish, "next", dryRun);
159+
await publishInCI(packagesToPublish, 'next', dryRun);
160160
} else {
161161
// Production.
162-
await publishInCI(packagesToPublish, "latest", dryRun);
162+
await publishInCI(packagesToPublish, 'latest', dryRun);
163163
}
164164
} else {
165165
/**
@@ -176,7 +176,7 @@ export async function runRelease({
176176
* Changeset creates tags for staging releases as well,
177177
* but we should only push tags to Github for prod releases
178178
*/
179-
if (releaseType === ReleaseType.Production && !dryRun) {
179+
if (releaseType === ReleaseType.Production && !dryRun) {
180180
/**
181181
* Push release tags created by changeset in publish() to Github
182182
*/

scripts/release/utils/publish.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ export async function publish(releaseType: string) {
3737
});
3838
}
3939

40-
export async function publishInCI(updatedPkgs: string[], npmTag: string, dryRun: boolean) {
40+
export async function publishInCI(
41+
updatedPkgs: string[],
42+
npmTag: string,
43+
dryRun: boolean
44+
) {
4145
const taskArray = await Promise.all(
4246
updatedPkgs.map(async pkg => {
4347
const path = await mapPkgNameToPkgPath(pkg);
@@ -75,7 +79,11 @@ export async function publishInCI(updatedPkgs: string[], npmTag: string, dryRun:
7579
return tasks.run();
7680
}
7781

78-
async function publishPackageInCI(pkg: string, npmTag: string, dryRun: boolean) {
82+
async function publishPackageInCI(
83+
pkg: string,
84+
npmTag: string,
85+
dryRun: boolean
86+
) {
7987
try {
8088
const path = await mapPkgNameToPkgPath(pkg);
8189

0 commit comments

Comments
 (0)