Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Commit a9f8b0b

Browse files
authored
Don't log in upload method (#52)
1 parent 851e827 commit a9f8b0b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ async function publishBundle(bundle, handlers, outputDir, isLocal, apiToken) {
147147
const manifestFile = path.join(outputDir, MANIFEST_FILE);
148148
await fsPromises.writeFile(manifestFile, JSON.stringify(bundleInfo, null, 2));
149149
} else {
150-
await uploadBundle(buf, bundleInfo, process.env.DEPLOY_ID, apiToken);
150+
const uploaded = await uploadBundle(buf, bundleInfo, process.env.DEPLOY_ID, apiToken);
151+
if (!uploaded) {
152+
console.log("Bundle already exists. Skipping upload...");
153+
}
151154
}
152155
}
153156

src/upload.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ async function uploadBundle(buf, info, deployId, apiToken) {
3838
throw new Error(`Failed to upload: ${error}`);
3939
}
4040
if (exists) {
41-
console.log("Bundle already exists. Skipping upload...");
4241
return false;
4342
}
4443
if (!upload_url) {

0 commit comments

Comments
 (0)