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

Don't log in upload method #52

Merged
merged 1 commit into from
Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ async function publishBundle(bundle, handlers, outputDir, isLocal, apiToken) {
const manifestFile = path.join(outputDir, MANIFEST_FILE);
await fsPromises.writeFile(manifestFile, JSON.stringify(bundleInfo, null, 2));
} else {
await uploadBundle(buf, bundleInfo, process.env.DEPLOY_ID, apiToken);
const uploaded = await uploadBundle(buf, bundleInfo, process.env.DEPLOY_ID, apiToken);
if (!uploaded) {
console.log("Bundle already exists. Skipping upload...");
}
}
}

Expand Down
1 change: 0 additions & 1 deletion src/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ async function uploadBundle(buf, info, deployId, apiToken) {
throw new Error(`Failed to upload: ${error}`);
}
if (exists) {
console.log("Bundle already exists. Skipping upload...");
return false;
}
if (!upload_url) {
Expand Down