From ccb8d16f080114f47a06391523f3b05d79fcfb74 Mon Sep 17 00:00:00 2001 From: softprops Date: Sat, 17 Jul 2021 19:37:16 -0400 Subject: [PATCH] lint fix and build --- package-lock.json | 2 +- src/github.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 35df8cc..df4a1d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "action-gh-release", - "version": "0.1.5", + "version": "0.1.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/github.ts b/src/github.ts index 6a83f09..1cddd80 100644 --- a/src/github.ts +++ b/src/github.ts @@ -148,10 +148,8 @@ export const release = async ( maxRetries: number = 3 ): Promise => { 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); }