better error on release create failure

This commit is contained in:
softprops 2021-08-09 09:24:48 -04:00
parent 487fcd9442
commit 383ad7bd35
2 changed files with 4 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -291,7 +291,9 @@ export const release = async (
console.log(
`⚠️ GitHub release failed with status: ${
error.status
}, retrying... (${maxRetries - 1} retries remaining)`
}\n${JSON.stringify(
error.response.data.errors
)}\nretrying... (${maxRetries - 1} retries remaining)`
);
return release(config, releaser, maxRetries - 1);
}