Skip to content

Commit

Permalink
Release v4.7.6 (#345)
Browse files Browse the repository at this point in the history
Co-authored-by: williamlines <actions@users.noreply.github.com>
  • Loading branch information
optic-release-automation[bot] and williamlines committed Jul 27, 2023
1 parent 9ad05f1 commit c9c4f44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79301,6 +79301,12 @@ const createDraftRelease = async (inputs, newVersion, releaseNotes) => {
inputs
)

if (!draftRelease?.id) {
throw new Error(
'API responded with a 200 status but no draft release returned. Please clean up any artifacts (draft release, release branch, etc.) and try again'
)
}

logInfo(`Draft release created successfully`)

return draftRelease
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "optic-release-automation-action",
"version": "4.7.5",
"version": "4.7.6",
"description": "Automate the release process of your npm modules by providing them OTP on-demand.",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit c9c4f44

Please sign in to comment.