When we are ready to branch our code, we first need to create the branch:
- In a local clone, run
git checkout mainandgit pull origin mainto make sure you have the latestmain - Run
git checkout -b release/1.1.0-previewXwhereXis the YARP preview number. When releasing a non-preview version, userelease/1.1instead ofrelease/1.1.0so that the branch can be used for future patches. - Update the branch to use 1ES servicing pools (see example PR)
- If you are releasing a non-preview version:
- Set the
PreReleaseVersionLabelineng/Versions.propstortw. - Run
build.cmd -pack - Verify that the packages in
artifacts/packages/Debug/Shippingdo not have a suffix after the intended version. For example the name should beYarp.ReverseProxy.1.1.0.nupkgand notYarp.ReverseProxy.1.1.0-dev.nupkg.
- Set the
- Run
git push origin release/1.1.0-previewXto push the branch to the server.
Update branding in main:
- Edit the file
eng/Versions.props - Set
PreReleaseVersionLabeltopreview.X(whereXis the next preview number) - Send a PR and merge it ASAP (auto-merge is your friend).
Update the runtimes and SDKs in global.json in main:
Check that the global.json includes the latest 3.1 runtime versions from here, and 5.0 from here, and 6.0 SDK from here.