#19962·OrchardCore

Release v3.0.2

Author: MikeAlhayekCreated Sep 30, 2026Updated Sep 30, 2026
Labelsrelease

Release Patch Preparation Guide

Step 1: Backporting Pull Requests

  1. Identify Pull Requests: Review any pull requests (PRs) that need to be backported to the release branch. These should be PRs that strictly contain bug fixes and nothing else.
  2. Backport Pull Requests: For PRs merged into the main branch that need to be applied to the release branch (e.g., release/3.0), comment on the merged PR with /backport to release/3.0. This comment will trigger a GitHub Action to create a new PR with the same changes for the release/3.0 branch.
  3. Merge PRs: Once all necessary PRs are created, merge them into the release/3.0 branch.

Step 2: Code and Documentation Updates

  • From the release branch (e.g., release/3.0), create a new temporary branch for the version (e.g., release-prep/3.0.2).
  • Update version references in the documentation and code. Refer to this PR for an example. The easiest way is to start with a search & replace on the previous version. Version Updates Checklist:
    • Update OrchardCore.Commons.props: Set <VersionPrefix></VersionPrefix> to the new version you're preparing for release.
    • Update Module Versions: Modify src/OrchardCore/OrchardCore.Abstractions/Modules/Manifest/ManifestConstants.cs to reflect the new version.
    • Release Notes: Finalize the release notes in the documentation, including:
      • Highlights and goals of the release.
      • Prerequisites for running the new version.
      • Upgrade steps.
      • A What's Changed section that simply lists all commits (PRs). You can generate this by adding a temporary tag (e.g., 2.1.1-temp; don't prefix it with v since that can cause a NuGet publish to trigger) to the latest commit in the release branch (e.g., release/2.1), then generating release notes for a draft release. Be sure to remove the tag immediately after this.
    • Update Documentation Navigation: Add the release notes page to the mkdocs.yml navigation and remove it from not_in_nav.
    • Version Mentions: Update all references to the new version throughout the documentation, including:
  • Create a version PR titled Release <version number> (e.g., Release 2.1.1) from the version branch (e.g., release-prep/2.1.1) into the release branch (e.g., release/2.1)
  • In GitHub, manually run the Preview - CI workflow on your branch (NOT main). This will release a new preview version on Cloudsmith for testing.

Step 3: Validation

Step 4: Creating the New Release

  1. Navigate to the GitHub Releases page.
  2. In the "Choose a tag" menu, enter the new version number, including v (e.g., v2.1.1), and select "+ Create tag: v... on publish."
  3. Change the target branch from main to the release branch (e.g., release/2.1).
  4. Enter the version number in the Title field (e.g., 2.1.1).
  5. Click Generate release notes to auto-generate release notes.
  6. Add a link to the release notes on the docs site: Check out the full release notes [here](https://docs.orchardcore.net/en/latest/releases/2.1.1/).
  7. Ensure the "Set as the latest release" checkbox is checked, then click Publish release.

Step 5: Aligning Branches

Merge to main: After releasing the new version, merge the release branch into the main branch to ensure main contains all administrative changes.

  • Create a pull request from the release branch (e.g., release/2.1) into main.
  • Resolve any merge conflicts using external tools (e.g., Fork) to avoid auto-merging main into the release branch. Important: DO NOT resolve conflicts using GitHub's interface; that will automatically merge main into the release branch, which must be avoided.
  • Merge the PR if all checks pass. If there are merge conflicts, then you'll need to merge to main manually using the following steps:
    1. Fetch the latest changes from the Git repository.
    2. git checkout the main branch.
    3. Merge the release branch (e.g., release/2.1) into main with a merge commit (NOT a squash merge). Use the commit message pattern Merge release-prep/2.1.1 to main.
    4. Resolve any conflicts.
    5. Push the changes to main. This action requires a user with the ability to force-push into main, as it is protected by default.
    6. GitHub will automatically delete the release branch; to restore it, go back to the new merged PR.

Step 6: Housekeeping

  • Assign the milestone for the release version to this issue. Create one if it doesn't exist.
  • Assign the milestone to the issues that were released in the version.
  • Close the milestone.
  • Update OrchardCore.Samples to the newly released version (just change the OrchardCoreVersion property in the root Directory.Build.props file).

Step 7: Publicizing the Release

  • Post about the release on X (formerly Twitter) via the Orchard Core X (Twitter) repo.
  • Post in the Orchard Core LinkedIn group.
  • Post to the Orchard Core Facebook page.
  • Send a message to the #announcements channel on Discord.
  • Add an announcement banner linking to the release notes on the home page of the website (Home content item → top Block → Announcement tab: add it with the Release badge). Don't do this if there's a more important Harvest banner there.