Skip to content

Commit

Permalink
fix: revert all formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
weilinzung committed Dec 14, 2024
1 parent 7727dbc commit 3c1dc61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const SITE_CHANNEL_QUOTA = 50;
const SITE_CHANNEL_LIVE_SITE = 1;

export function interpretChannelDeployResult(
deployResult: ChannelSuccessResult,
deployResult: ChannelSuccessResult
): { expireTime: string; expire_time_formatted: string; urls: string[] } {
const allSiteResults = Object.values(deployResult.result);

Expand Down Expand Up @@ -165,15 +165,15 @@ async function execWithCredentials(
FIREBASE_DEPLOY_AGENT: "action-hosting-deploy",
GOOGLE_APPLICATION_CREDENTIALS: gacFilename, // the CLI will automatically authenticate with this env variable set
},
},
}
);
} catch (e) {
console.log(Buffer.concat(deployOutputBuf).toString("utf-8"));
console.log(e.message);

if (!debug) {
console.log(
"Retrying deploy with the --debug flag for better error output",
"Retrying deploy with the --debug flag for better error output"
);
await execWithCredentials(args, projectId, gacFilename, {
debug: true,
Expand All @@ -199,7 +199,7 @@ export async function getAllChannels(
["hosting:channel:list", ...(target ? ["--site", target] : [])],
projectId,
gacFilename,
{ firebaseToolsVersion },
{ firebaseToolsVersion }
);

const channelResults = JSON.parse(allChannelsText.trim()) as
Expand Down Expand Up @@ -347,7 +347,7 @@ export async function removeChannel(

export async function deployPreview(
gacFilename: string,
deployConfig: ChannelDeployConfig,
deployConfig: ChannelDeployConfig
) {
const { projectId, channelId, target, expires, firebaseToolsVersion } =
deployConfig;
Expand Down Expand Up @@ -381,7 +381,7 @@ export async function deployProductionSite(
["deploy", "--only", `hosting${target ? ":" + target : ""}`],
projectId,
gacFilename,
{ firebaseToolsVersion },
{ firebaseToolsVersion }
);

const deploymentResult = JSON.parse(deploymentText) as
Expand Down

0 comments on commit 3c1dc61

Please sign in to comment.