ci: Add release automation#170
Merged
Merged
Conversation
5595b51 to
ee66471
Compare
5dc82bc to
f390128
Compare
| name: Test add-team-label | ||
| uses: ./.github/workflows/test-add-team-label.yml | ||
| secrets: | ||
| TEAM_LABEL_TOKEN: ${{ secrets.TEAM_LABEL_TOKEN }} |
There was a problem hiding this comment.
Bug: Team label test fails on push events
The test-add-team-label workflow is called unconditionally but the underlying action requires github.event.pull_request.user.login and github.event.pull_request.html_url which are only available for pull_request events. Since main.yml triggers on both push and pull_request events, this test will fail when triggered by push events to the main branch.
f390128 to
18fccb5
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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 adds some workflows from the
metamask-module-templaterepository related to release automation. The only difference is that instead of publishing to NPM, we just publish a tag to GitHub instead.Note
Introduce release automation: create release PRs, detect releases on main, publish GitHub releases with Slack notice and major tag update; add changelog validation.
create-release-pr.ymlto open release PRs viaMetaMask/action-create-release-pr.main.ymlto detect releases onpushbygithub-actions, then invoke reusablepublish-release.yml.publish-release.ymlreusable workflow: posts Slack announcement and publishes GitHub release, then updates shorthand major tag.build-lint-test.ymlto validateCHANGELOG(yarn lint:changelog), with RC-specific validation onrelease/*.scripts/update-major-version-tag.shto managev<major>tags post-release.CHANGELOG.mdscaffold following Keep a Changelog.repositorymetadata andlint:changelogscript inpackage.json.Written by Cursor Bugbot for commit 18fccb5. This will update automatically on new commits. Configure here.