-
Before merging a feature, create a release branch for the next target version, e.g.
git checkout trunk git checkout -b planned-release/0.2.1
-
In GitHub, select the base branch as the
planned-release/...
branch. -
Merge feature branches into the
planned-release/...
branch.
- When the version is ready for release, inside the
planned-release/...
branch, bump the version number invip-block-data-api.php
. Change plugin header andWPCOMVIP__BLOCK_DATA_API__PLUGIN_VERSION
to match new version. - Push the
planned-release/...
branch to GitHub. - PR version changes with feature changes and merge to
trunk
.
-
In
trunk
, add a signed tag for the release:git checkout trunk git pull git tag -s -a <version> -m "Release <version>" # e.g. git tag -s -a 1.0.2 -m "Release 1.0.2"
-
Run
git push --tags
.
-
In the
vip-block-data-api
folder, run this command to create a plugin ZIP:git archive --prefix "vip-block-data-api/" <version> -o vip-block-data-api-<version>.zip # e.g. git archive --prefix "vip-block-data-api/" 1.0.2 -o vip-block-data-api-1.0.2.zip # # Creates a ZIP archive with the prefix folder "vip-block-data-api/" containing files from tag 1.0.2
-
Visit the vip-block-data-api create release page.
-
Select the newly created version tag in the dropdown.
-
For the title, enter the release version name (e.g.
1.0.2
) -
Add a description of release changes.
-
Attach the plugin ZIP.
-
Click "Publish release."
Patch updates (e.g. 1.2.3
-> 1.2.4
) do not require any additional steps.
This section applies if the plugin has increased by a minor (e.g. 1.2
-> 1.3
) or major (e.g. 1.2
-> 2.0
) version.
For an example updating an integration version, see this mu-plugins PR.
-
Ensure that the latest release of the Block Data API plugin has been pulled in
vip-go-mu-plugins-ext
. Updates are synced by minor version, so a patch update of1.2.3
will be pulled intovip-integrations/vip-block-data-api-1.2
. If it's not, wait for the Update versioned external dependencies workflow to pull in the latest changes, or run it manually. -
Create a branch on vip-go-mu-plugins.
-
Update the
integrations/block-data-api.php
version to match the minor version of the plugin, e.g.1.2
. This will correspond with the folder path for the plugin invip-go-mu-plugins-ext
. -
Submit the PR, get it approved, and merge.