-
Notifications
You must be signed in to change notification settings - Fork 68
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
Enable pre-release workflow #1486
Conversation
|
I'm not sure this will have the desired behaviour, since running the pre-release check on any CI including release will also fail. I would suggest that if we want to setup a pre-release branch we setup CI so that a dedicated branch creates a prerelease PR on that base branch if we merge into there. Then we can enable / disable this workflow depending on whether we want to use it or not. |
Yeah, that's true. I can duplicate the workflow for main and release branches though, I'd like to avoid having a dedicated branch and turning on and off stuff because it's easy to get it wrong. |
@LukeSheard I created a standalone workflow to check pre mode, it's a lightweight (3 secs) concurrent check. I also added the desired workflow in the description, if it makes sense, so we can comment on it. |
Good conversation with @LukeSheard about our options:
|
Should we also run the validate workflow on |
Good catch, done. |
In line with this I've also disabled direct pushes to Would it not also make sense to create a check which merges upstream changes from |
Thanks!
I don't think we want it automatic right now because when we merge upstream we want to regenerate the |
Workflow proposal
release/...
long-lived branchnext
(yarn changeset pre enter next
), but if we want to have concurrent tags, we can have them (yarn changeset pre enter other_tag
)main
, updating our changesets normallyrelease/webpack-5
will generatechangeset-release/release/webpack-5
). If that changeset-release branch is merged back into the release branch, a prerelease version should be published to the npm tag we chose at point 2 (normallynext
)yarn changeset pre exit
) and we create a PR from the release branch intomain
. If we forget to exit pre mode, the CI will catch it and not let us merge back intomain
Summary of the upcoming webpack 5 pre-release after discussing it, for reference (thanks @steveukx):
Changes in this PR
Preparatory work for the changeset pre-release flow
release/*
branches to trigger the release workflowrelease/*
branches to trigger testsrelease/*
branches to trigger static analysisrelease/*
branches to trigger validate@v1
(master is deprecated)