Skip to content

Use a GitHub Action to generate the changelog - #9434

Merged
nicolo-ribaudo merged 2 commits into
babel:masterfrom
nicolo-ribaudo:actions/trigget-github-release
Feb 4, 2019
Merged

nicolo-ribaudo merged 2 commits into
babel:masterfrom
nicolo-ribaudo:actions/trigget-github-release

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Jan 30, 2019 •

Copy link
Copy Markdown
Member
Q                       A
License MIT

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.
schermata da 2019-01-30 14-16-47

You can see the visual workflow at https://github.com/babel/babel/blob/d3032e53522505c490f0d0e64acdc673c4191a78/.github/main.workflow

@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories area: publishing process labels 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"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two options don't seem to work

@babel-bot

babel-bot commented Jan 30, 2019 •

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9952/

@babel-bot

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9945/

@@ -0,0 +1,25 @@
"use strict";

const [ /* node */, /* file */, tag ] = process.argv;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nice trick

@nicolo-ribaudo
nicolo-ribaudo force-pushed the actions/trigget-github-release branch from dc19e59 to 17c4533 Compare January 31, 2019 15:52
@nicolo-ribaudo
nicolo-ribaudo force-pushed the actions/trigget-github-release branch from 17c4533 to 1c65b33 Compare January 31, 2019 15:53
@nicolo-ribaudo
nicolo-ribaudo merged commit 44d8a59 into babel:master Feb 4, 2019
@nicolo-ribaudo
nicolo-ribaudo deleted the actions/trigget-github-release branch February 4, 2019 21:15
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: publishing process outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants