lint fix and build

This commit is contained in:
softprops 2021-07-17 19:37:16 -04:00
parent 75dbd0cd0e
commit ccb8d16f08
2 changed files with 6 additions and 6 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "action-gh-release",
"version": "0.1.5",
"version": "0.1.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -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("/");
@ -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);
}