-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Release tooling: Release stable releases from latest-release
#24106
Conversation
@JReinhold what's the status of this PR? |
@ndelangen still needs some minor tweaks before it's mergeable. |
One thing missing here, is figuring out how to label patch PRs as patched. This works fine when we do an actual patch release, cherry-picking pull requests from Some solutions:
@kasperpeulen @shilman any ideas? I would also be okay to punt this, and then just make it a manual step to label all patch PRs when we do major/minor releases from |
@@ -88,6 +88,15 @@ jobs: | |||
git config --global user.email '[email protected]' | |||
yarn release:pick-patches | |||
|
|||
- name: Cancel when no hotfixes to pick |
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.
Brings back #24274
However this step won't have any effect until this PR has been cherry-picked to main
, because the pick-patches.ts
script that sets pr-count
runs from main
.
The last null check ensures that when this is not merged to main
, this will never cancel, to not block a release process.
See a test run of this here: https://github.com/storybookjs/storybook/actions/runs/6299420488/job/17100151688
@shilman as discussed I made some changes:
I believe this PR is ready to be merged. |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
…rybook into release-stable-to-latest
Release tooling: Release stable releases from `latest-release` (cherry picked from commit 9139e90)
Manually cherry-picked to |
…latest" This reverts commit 43825e0.
What I did
This PR changes a few things about the release setup, most notably stable releases from
next
will now be released onlatest-release
rather than onnext-release
.latest-release
if a non-prerelease version bump is chosen.latest-release
into the branch, resolving any conflicts to the branch's content - to solve any merge conflicts.latest-release
tomain
as usual - this shouldn't cause any merge conflicts given that they have already been resolved.main
, we trigger a preminor version bump onnext
to ensurenext
is always one minor version ahead ofmain
.Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
We need to test this out manually, however it's very hard to do. I think we have to just watch the workflow as it happens live during our next minor release. I'll gladly be responsible for that.
I have tested all the individual pieces locally, the new shell scripts and all.
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli/src/sandbox-templates.ts
Make sure this PR contains one of the labels below:
Available labels
bug
: Internal changes that fixes incorrect behavior.maintenance
: User-facing maintenance tasks.dependencies
: Upgrading (sometimes downgrading) dependencies.build
: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup
: Minor cleanup style change. Will not show up in release changelog.documentation
: Documentation only changes. Will not show up in release changelog.feature request
: Introducing a new feature.BREAKING CHANGE
: Changes that break compatibility in some way with current major version.other
: Changes that don't fit in the above categories.🦋 Canary release
This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the
@storybookjs/core
team here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>