From @Daniel15 on April 11, 2017 15:30
Do you want to request a feature or report a bug?
Feature?
What is the current behavior?
Release scripts die when GitHub API throws an error:
209.141.56.29 - 2017-04-07 15:39:07 - 4 - Server error: `POST https://uploads.github.com/repos/yarnpkg/yarn/releases/6013787/assets?name=yarn-v0.23.1.tar.gz` resulted in a `502 Bad Gateway` response:
{"message":"Error creating policy","request_id":"E634:1309:3D877C5:3FE5D63:58E7B298"}
What is the expected behavior?
Retry the upload and only throw if it fails a few times
Copied from original issue: yarnpkg/yarn#3108