ember-cli-release icon indicating copy to clipboard operation
ember-cli-release copied to clipboard

How to create a full-fledged GitHub release

Open elwayman02 opened this issue 10 years ago • 5 comments

Right now ember release seems to create the following undesirable situation:

releases_ _plyfe_ember-social

You'll note that github adds them as releases but doesn't show the message or show that they are the latest release

What I want is for the command to generate an actual release ala:

releases_ _elwayman02_ember-cli-opinionated

Am I missing some config option that will do this?

elwayman02 avatar Sep 24 '15 17:09 elwayman02

ember release does git tagging and pushes that to github (which they display as you have in the first image). This repo does not use the GH API to create "GitHub Release" descriptions and whatnot (the latter screenshots). It should be fairly straightforward to add in as a afterPush hook (see this example that publishes to npm upon ember release for an example of how to use the hook).

I'm not certain that there is a good default to use for the description and whatnot, so I don't know that we can do this automatically if we detect that the repo is a github repo...

rwjblue avatar Sep 24 '15 18:09 rwjblue

"Full-fledged" Github releases are metadata associated with a tag that resides only in Github (not in your git repo). AFAIK, to create them requires using Github's API, which I haven't spent much time looking into.

I'm not opposed to adding support for this out of the box per-se, but it is something that is highly dependent on the particular project (so would be difficult to make a one-size-fits-all solution). For instance, in our app we create Github releases from tags created by ember-cli-release with lots more information about the release.

slindberg avatar Sep 24 '15 18:09 slindberg

@slindberg maybe this would be best added as an example in the readme, much like the auto-publish code. I can investigate this a bit next week maybe.

elwayman02 avatar Sep 24 '15 18:09 elwayman02

@elwayman02 :+1:

I haven't given it much thought because I've never used the Github API and didn't want to deal with authentication. If you can whip up an example, I think it'd be an excellent addition to the readme.

slindberg avatar Sep 24 '15 19:09 slindberg

I tried semantic-release-cli and it does that. I think we can bring some of those ideas to this addon.

Also, is there a reason why publish isnt the default for public modules?

MiguelMadero avatar Nov 19 '16 20:11 MiguelMadero