New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta: add release-please-action
for automated releases
#2395
Changes from 3 commits
cd09b65
177c0f0
92ae1c1
c47b6f2
4df4098
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: release-please | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v2 | ||
id: release | ||
with: | ||
package-name: node-gyp | ||
release-type: node | ||
changelog-types: > | ||
[{"type":"feat","section":"Features","hidden":false}, | ||
{"type":"fix","section":"Bug Fixes","hidden":false}, | ||
{"type":"bin","section":"Core","hidden":false}, | ||
{"type":"gyp","section":"Core","hidden":false}, | ||
{"type":"lib","section":"Core","hidden":false}, | ||
{"type":"src","section":"Core","hidden":false}, | ||
{"type":"test","section":"Tests","hidden":false}, | ||
{"type":"build","section":"Core","hidden":false}, | ||
{"type":"configure","section":"Core","hidden":false}, | ||
{"type":"install","section":"Core","hidden":false}, | ||
{"type":"deps","section":"Core","hidden":false}, | ||
{"type":"python","section":"Core","hidden":false}, | ||
{"type":"win","section":"Core","hidden":false}, | ||
{"type":"zos","section":"Core","hidden":false}, | ||
{"type":"doc","section":"Doc","hidden":false}, | ||
{"type":"docs","section":"Doc","hidden":false}, | ||
{"type":"readme","section":"Doc","hidden":false}, | ||
{"type":"chore","section":"Miscellaneous","hidden":false}, | ||
{"type":"refactor","section":"Miscellaneous","hidden":false}, | ||
{"type":"ci","section":"Miscellaneous","hidden":false}, | ||
{"type":"travis","section":"Miscellaneous","hidden":false}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Travis looks redundant here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the feedback. Travis makes sense to remove, especially since we are only using GitHub Actions now. It's not hurting anything, I think, but it is odd to see it there. This list is the full set of prefixes that will be included in (read: won't be omitted from) the Changelog. I expect people won't use most of these, but commit prefixes that On the other hand, leaving certain prefixes out of the list would be a way to intentionally exclude them from the final Changelog. If that would be preferred, (to "reduce clutter" in the Changelog, I suppose?), then I can remove some more of these. (For example: the default for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ones I missed or decided not to include:
Of these, I think I want to add:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. Although I think maybe encouraging people to just use Edit to add: It is possible to lint the commit messages to conform with Conventional Commits with a GitHub Action. I've seen this one used before: https://github.com/marketplace/actions/commit-linter |
||
{"type":"meta","section":"Miscellaneous","hidden":false}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could link to Electron's commit message guidelines, which are a lot like Node's (forked docs based on NodeJS's docs), but based around Conventional Commits: https://github.com/electron/electron/blob/master/docs/development/pull-requests.md#commit-message-guidelines
On the other hand, emphasizing
fix:
feat:
andBREAKING-CHANGE:
semver hints would help for the release proposal PRs to know whether to bump patch, minor or major. Maybe we should have our own docs page about this?For dealing with semver manually,
release-please-action
can be told to release a specific version, by posting a commit with aRelease-As: x.y.z
footer: https://github.com/googleapis/release-please/tree/v11.11.0#how-do-i-change-the-version-number. So maintainers can just do that and not worry very much about individual commit messages, if the need arises.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link to
release-please.yml
.