Skip to content
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

fix(scripts/performRelease): add comment, fix typo #1113

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

williaster
Copy link
Collaborator

🏠 Internal

This is mostly a PR to trigger a non-alpha-release, because of an implication of the release flow I hadn't fully internalized (and rather than committing something random, I added a comment about this implication to the release script 😄 ):

If there are any PRs since the last tag which have an alpha-release label, the release will be an alpha-release
(#1107 had this tag and thus the release was an alpha, I've since removed that tag). Here's an example

  • tag @ whatever created
  • Merge PR 1 tagged alpha-release + patch-release => triggers alpha patch
  • Merge PR 2 tagged minor-release => triggers alpha minor
  • Remove alpha-release from PR 1
  • Merge PR 3 tagged patch-release => triggers non-alpha minor (minor required from PR 2)

The alternative I think is to perform a non-alpha release if there are PRs that are merged after the alpha-release-tagged PR (in the example above, that would mean after PR 2 is merged, a minor release would be triggered). This seems like it could lead to unintentional non-alpha-releases if multiple people are merging things, so simply requiring the removal of alpha-release tags seems safer to me. Note in the example above, if you wanted PR 2 to trigger a minor release, you would just need to remove the alpha label from PR 1 prior to merging.

Open to feedback tho!

@kristw @hshoff

@williaster williaster merged commit 7f2c938 into master Mar 17, 2021
@williaster williaster deleted the chris--moar-release-fixes branch March 17, 2021 18:16
@kristw
Copy link
Collaborator

kristw commented Mar 17, 2021

The removal of the alpha-release tag is a bit manual, but should prevent releasing the non-alpha version, which defeat the purpose of the alpha in the first place.

@github-actions
Copy link

🎉 This PR is included in version v1.7.1 of the packages modified 🎉

@williaster
Copy link
Collaborator Author

^yeah I agree, it's a bit of a tradeoff but I think this is the way to go for now. we can always reconsider in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants