Repository navigation
Use a GitHub Action to generate the changelog - #9434
Merged
nicolo-ribaudo merged 2 commits intoFeb 4, 2019
Merged
Conversation
nicolo-ribaudo
commented
Jan 30, 2019
| LABEL "com.github.actions.name" = "Trigger GitHub release" | ||
| LABEL "com.github.actions.description" = "Trigger a new GitHub release and generate the changelog using lerna-changelog." | ||
| LABEL "com.github.actions.icon" = "tag" | ||
| LABEL "com.github.actions.color" = "yellow" |
Member
Author
There was a problem hiding this comment.
These two options don't seem to work
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9952/ |
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9945/ |
xtuc
reviewed
Jan 30, 2019
| @@ -0,0 +1,25 @@ | |||
| "use strict"; | |||
|
|
|||
| const [ /* node */, /* file */, tag ] = process.argv; | |||
nicolo-ribaudo
force-pushed
the
actions/trigget-github-release
branch
from
January 31, 2019 15:52
dc19e59 to
17c4533
Compare
nicolo-ribaudo
force-pushed
the
actions/trigget-github-release
branch
from
January 31, 2019 15:53
17c4533 to
1c65b33
Compare
This was referenced Jan 31, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first step towards publishing from GitHub actions, so that it will take 10 mins instead of one hour of the publisher's time.
The workflow I implemented in this PR is far from complete: it will automatically create the release at https://github.com/babel/babel/releases, but it won't publish anything to npm yet (it still needs to be done locally). Before adding publishing support, I want to check that this works: a wrong package on npm is far worst than a wrong GitHub release 😉
I have done some testing at https://github.com/babel/test-github-actions (private repo, sorry) and it looks like this approach works. There is one big caveat: this action will be marked as "skipped" for every PR. It is correct, but it adds a bit of visual noise. When public repos will support actions other than "push", those three blocks will probably disappear since I will trigger them only on release.

I have contacted GitHub to understand if it is possible to hide it.
You can see the visual workflow at https://github.com/babel/babel/blob/d3032e53522505c490f0d0e64acdc673c4191a78/.github/main.workflow