- refactored the big `if/else` to exit early - added error handling for different errors while creating a release