Skip to content

Conversation

@Daniel15
Copy link
Member

@Daniel15 Daniel15 commented Mar 6, 2017

Summary
Currently, our CircleCI build script publishes the GitHub release using ghr, whereas AppVeyor publishes the GitHub release using a custom script. To maintain consistency between the two, I've changed the CircleCI build to publish GitHub releases in a way similar to how it's done for AppVeyor builds.

I would have loved to do the release in the deployment section of circle.yml like we do for ghr, but unfortunately this runs too early (before the build log has been saved and artifacts have been archived) so we can't hit the CircleCI API at that point. Running it as a webhook ensures that it runs once the build has fully completed, and the release script can hit the CircleCI API to verify that it's a legitimate build.

Doing release this way also removes the risk of the GitHub access token leaking, as CircleCI no longer needs to have the access token.

Test plan
I manually tested the code using a test repo and it worked fine (https://github.com/Daniel15/yarn-release-test/releases/tag/v0.20.3), I'll babysit the next release we do to ensure everything is working as expected.

Closes #2799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants