The following is a set of instructions for our maintenance and release process.
Pull requests represent a proposed solution to a specified problem. They should always reference an issue that describes the problem and contains discussion about the problem itself. Discussion on pull requests should be limited to the pull request itself, i.e. code review.
For more on how 10up writes and manages code, check out our 10up Engineering Best Practices.
The develop
branch is the development branch which means it contains the next version to be released. master
contains the corresponding stable development version. Always branch off the develop
branch and open up PRs against develop
.
- Branch: Starting from
develop
, create a new branch following the formatrelease/X.Y.Z
. - Version bump: Update the plugin version in
readme.txt
,package.json
,package-lock.json
,brightcove-video-connect.php
in plugin version andBRIGHTCOVE_VERSION
constant. - Changelog: Add/update the changelog in
CHANGELOG.md
andreadme.txt
, ensuring to link the [X.Y.Z] release reference in the footer ofCHANGELOG.md
(e.g., https://github.com/10up/brightcove-video-connect/compare/X.Y.Z-1...X.Y.Z). - New files: Check to be sure any new files/paths that are unnecessary in the production version are included in
.gitattributes
. - If applicable, bump the
Tested up to
field inreadme.txt
. - Release date: Double check the release date in both changelog files.
- Run
npm run build
to generate updated translation files. - Commit your changes and open a PR to
develop
. - Once changes are merged, open a PR from
develop
tomaster
. - Test: Once changes are merged, checkout the
master
branch locally and test for functionality. - Release: Once merged, draft a new release naming the release with the new version number, creating a new label
X.Y.Z
, and selecting as targetmaster
. Paste the release changelog fromCHANGELOG.md
into the body of the release and include a link to the closed issues on the milestone. - SVN: Wait for the GitHub Action to finish deploying to the WordPress.org repository. If all goes well, users with SVN commit access for that plugin will receive an emailed diff of changes.
- Check WordPress.org: Ensure that the changes are live on https://wordpress.org/plugins/brightcove-video-connect/. This may take a few minutes.
- Close milestone: Edit the milestone with release date (in the
Due date (optional)
field) and link to GitHub release (in theDescription
field), then close the milestone. - Punt incomplete items: If any open issues or PRs which were milestoned for
X.Y.Z
do not make it into the release, update their milestone toX.Y.Z+1
,X.Y+1.0
,X+1.0.0
orFuture Release
.