Skip to content

Commit

Permalink
lint fix and build
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Jul 17, 2021
1 parent 104b649 commit 5e3f23f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/github.ts
Expand Up @@ -148,10 +148,8 @@ export const release = async (
maxRetries: number = 3
): Promise<Release> => {
if (maxRetries <= 0) {
console.log(
`❌ Too many retries. Aborting...`
);
throw new Error("Too many retries.")
console.log(`❌ Too many retries. Aborting...`);
throw new Error("Too many retries.");
}

const [owner, repo] = config.github_repository.split("/");
Expand Down Expand Up @@ -251,7 +249,9 @@ export const release = async (
} catch (error) {
// presume a race with competing metrix runs
console.log(
`⚠️ GitHub release failed with status: ${error.status}, retrying... (${maxRetries - 1} retries remaining)`
`⚠️ GitHub release failed with status: ${
error.status
}, retrying... (${maxRetries - 1} retries remaining)`
);
return release(config, releaser, maxRetries - 1);
}
Expand Down

0 comments on commit 5e3f23f

Please sign in to comment.