Signed-off-by: Carrie Dils <carriedils@gmail.com> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Carrie Dils <cdils@users.noreply.github.com> Co-authored-by: Andy Fragen <andy@thefragens.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: cdils <3099408+cdils@users.noreply.github.com>
12 KiB
Releasing a new version of FAIR Connect
0. Ensure adequate permissions
To perform a release of FAIR Connect, the Release Manager needs the following:
writeor higher permissions on the FAIR Connect repositorymaintainor higher permissions on the TSC repository (this is required to post a Discussion in the Announcements category per step 9.3.)
1. Branching strategy overview
FAIR Connect follows a gated release branching strategy to ensure quality and control. For the complete strategy and automation details, see Release Branching Strategy.
Release branch lifecycle:
- A
release/X.Y.Zbranch is created frommainbefore the release process begins - All version bumps and fixes for this release happen on the
release/X.Y.Zbranch - The release manager merges
release/X.Y.Z→developmentfor testing and RC validation - Once validated, the release manager merges
release/X.Y.Z→mainfor the production release
This document assumes the release/X.Y.Z branch already exists.
2. Release types and versioning
FAIR Connect supports two types of releases, each with distinct workflows and version naming conventions:
Production Release
A production release represents a stable, tested version ready for general use.
- Version format:
MAJOR.MINOR.PATCH(e.g.,1.2.0) - Merge target:
mainbranch - GitHub release: Marked as the latest release
- Announcement: Posted to Announcements discussion
Release Candidate (RC)
A release candidate is a pre-release version intended for testing and validation before the final production release. Multiple RCs may be created and tested before the final release.
- Version format:
MAJOR.MINOR.PATCH-RC#(e.g.,1.2.0-RC1,1.2.0-RC2) - Merge target:
developmentbranch - GitHub release: Marked as a pre-release (not the latest release)
- Announcement: Typically not announced to production users; may be shared in Discussions for testing feedback
Use the appropriate workflow below based on which release type you are performing.
3. Verify milestone readiness
Before starting the release process, ensure that the milestone for the upcoming release is finalized and clear.
-
Go to the FAIR Connect Milestones page.
You can also access this from the repository's main page by clicking Issues or Pull requests, then Milestones.
-
Open the milestone corresponding to the version being released.
-
Review all issues and pull requests assigned to the milestone.
-
Confirm that:
- All intended changes for the release have been merged, and
- No open issues or pull requests remain in the milestone.
-
For any open or deferred issues or pull requests:
- Move them to the next milestone, or
- Remove the milestone if they are no longer planned for release.
Once the milestone contains no open issues or pull requests, the release is ready to proceed.
Releasing a Release Candidate (RC)
Follow these steps to release an RC from the release/X.Y.Z branch. Multiple RCs may be created and tested before moving to the production release.
1. Start the release workflow
-
Go to the FAIR Connect repository.
-
Click the Actions tab.
-
In the Actions workflow list, select Bump version for release.
2. Configure and run the workflow
-
Click the Run workflow button. A workflow input panel opens.
-
Complete the following fields:
- Use workflow from: Select Branch: release/X.Y.Z
- New version being released: Enter the RC version using the format
X.Y.Z-RC#(e.g.,1.2.0-RC1,1.2.0-RC2)
-
Click the Run workflow button to start the release process.
-
Refresh the page to view workflow progress.
-
Click the running workflow to open the logs.
-
When the workflow finishes, it creates a pull request containing the version-bump changes.
3. Review and merge the version bump PR
-
Go to the Pull requests tab.
-
Open the version-bump pull request created by the release workflow.
-
Review the changes:
- Update of the version number in
plugin.php - Update the
VERSIONconstant inplugin.php
- Update of the version number in
-
Confirm that the changes are correct.
-
After review and approval, merge the PR to the
release/X.Y.Zbranch. -
Go to the Actions tab to verify that workflow processing is complete.
-
Continue to the next step once all workflows finish.
4. Merge release branch to development
The release/X.Y.Z branch must be merged to development for testing and validation.
- In the repository, create a pull request to merge
release/X.Y.Z→development - For the PR title, use:
release: merge release/X.Y.Z into development for RC testing - Ensure all checks pass and obtain required reviews per branch protection rules
- Merge the PR to
development
BE AWARE! The release branch may be auto-deleted. If so, BEFORE you close the window, click RESTORE BRANCH
ALSO BE AWARE! Any open PRs targeting the release branch will be auto-closed if the branch is deleted. You will need to reopen them.
5. Create a new release on GitHub
-
From the repository's main page, click the Releases link — or go directly to the Releases page.
-
Click the Draft a new release button.
-
In the Select tag field:
- Select the tag that matches the version you just bumped to (e.g.,
1.2.0-RC1). - Create a new tag if it does not appear in the dropdown.
- Target branch: Select
development
- Select the tag that matches the version you just bumped to (e.g.,
-
In the Release title field, enter a title for the release (e.g.,
1.2.0-RC1). -
Under Release notes:
- Leave the Describe this release field empty or add minimal testing instructions (release notes will be generated when the final production release is created).
- Check Set as a pre-release to mark this as a release candidate.
-
Click the Save draft button.
6. Finalize and publish the release
-
Return to the Draft Release page, if not already there.
-
Release-specific settings:
- Do NOT check Set as the latest release (already marked as pre-release from step 5).
- Optionally check Create a discussion for this release if you want to notify testers; if checked, you may choose a different category (e.g., General) instead of Announcements.
-
In a new browser tab, go to the repository's Actions tab and confirm all workflows have completed.
-
Return to the Draft Release page and click Publish release. This initiates the remaining release workflows.
-
Verify the release:
- Visit the Releases page to confirm RC is tagged as pre-release.
- Notify relevant testers to validate the RC version.
7. Next steps
If additional testing iterations are needed:
- Continue making fixes on the
release/X.Y.Zbranch - Merge fixes back to
development - Repeat steps 2-6 for the next RC (e.g.,
1.2.0-RC2)
If the RC is validated and ready for production:
Proceed to the Production Release workflow below for the final release.
Releasing a Production Release
Follow these steps to release the production version from main after the RC(s) have been validated.
1. Start the release workflow
-
Go to the FAIR Connect repository.
-
Click the Actions tab.
-
In the Actions workflow list, select Bump version for release.
2. Merge release branch into main
The release/X.Y.Z branch contains all the code and must be merged to main for the production release.
- In the repository, create a pull request to merge
release/X.Y.Z→main - For the PR title, use:
release: merge release/X.Y.Z into main for production release - Ensure all checks pass and obtain required reviews per branch protection rules
- Merge the PR to
main
Once all workflows are complete, move on to the next step.
Note: At this stage you can delete the release branch.
3. Configure and run the workflow
-
Click the Run workflow button. A workflow input panel opens.
-
Complete the following fields:
- Use workflow from: Select Branch:
main - New version being released: Enter the production version using semantic versioning format (e.g.,
1.2.0)
- Use workflow from: Select Branch:
-
Click the Run workflow button to start the release process.
-
Refresh the page to view workflow progress.
-
Click the running workflow to open the logs.
-
When the workflow finishes, it creates a pull request containing the version-bump changes.
4. Review and merge the version bump PR
-
Go to the Pull requests tab.
-
Open the version-bump pull request created by the release workflow.
-
Review the changes:
- Update of the version number in
plugin.php - Update the
VERSIONconstant inplugin.php
- Update of the version number in
-
Confirm that the changes are correct.
-
After review and approval, merge the PR to the
mainbranch. -
Go to the Actions tab to verify that workflow processing is complete.
-
Continue to the next step once all workflows finish.
5. Create a new release on GitHub
-
From the repository's main page, click the Releases link — or go directly to the Releases page.
-
Click the Draft a new release button.
-
In the Select tag field:
- Select the tag that matches the version you just bumped to (e.g.,
1.2.0). - Create a new tag if it does not appear in the dropdown.
- Target branch: Select
main
- Select the tag that matches the version you just bumped to (e.g.,
-
In the Release title field, enter a title for the release (e.g.,
1.2.0). -
Under Release notes:
- Leave Previous tag set to
Auto. - Click Generate release notes.
- Review and edit the generated notes as needed.
- You can add additional information directly in the Describe this release field if needed. If a teammate is preparing a release post for FAIR.pm, coordinate with them to include any relevant details.
- Leave Previous tag set to
-
Click the Save draft button.
6. Update the changelog
-
In a new browser tab, open
CHANGELOG.md. -
Click the pencil icon to edit the file directly in the browser.
-
Copy the release notes into
CHANGELOG.mdunder the new version heading and date (e.g.,1.2.0 / 2025-12-11). -
Click the Commit changes button. In the panel that opens:
- Select Create a new branch for this commit and start a pull request.
- Enter a branch name or use the default (e.g.,
update-changelog-1.2.0). - Click the Sign off and propose changes button.
-
Create a pull request for the updated
CHANGELOG.mdfile. -
Review, approve, and merge the pull request.
7. Finalize and publish the release
-
Return to the Draft Release page.
-
Release-specific settings:
- Check Set as the latest release.
- Check Create a discussion for this release and choose the Announcements category.
-
In a new browser tab, go to the repository's Actions tab and confirm all workflows have completed.
-
Return to the Draft Release page and click Publish release. This initiates the remaining release workflows.
8. Flush Caches
Flush the caches in the following order:
Redis
- Log in to AWS Console for Site Cache: https://us-east-1.console.aws.amazon.com/elasticache/home?region=us-east-1#/valkey/site-cache
- Scroll down and click on Connect to Cache
- When the page has loaded, type
flushall
Git Updater
- Log in to the network admin page for GitUpdater: https://fair.pm/wp-admin/network/settings.php?page=git-updater
- Press the Clear Cache button
Fastly
- Log in to Fastly and go to the Fair.pm page: https://manage.fastly.com/configure/services/0EAkUOqF5q35zrk6oobCP4
- From the Purge menu option, select Purge URL
- Leave subdomain blank and put in the path
/wp-json/git-updater/v1/update-api/ - When prompted, purge another URL
- Put in the subdomain
apiand the path/git-updater/v1/update-api/
9. Verify the release:
- Visit the Releases page to confirm latest release.
- Go to
https://api.fair.pm/git-updater/v1/update-api/?slug=fair-pluginand check - Check any site using FAIR Connect to ensure the new version is available.
10. Merge the new production code back
- Merge
mainback intodevelopment - Create a new branch for the next release off of
main
Guess what?
You're done! Make a post on the website and cheer.