-
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.
npm run build
composer install --no-dev
Note: If new production dependencies have been added, modify the root .gitignore
file to include new vendor/
subfolders.
Now commit these build changes in.
- When the version is ready for release, inside the
planned-release/...
branch, bump the version number invip-workflow.php
. Change plugin header andVIP_WORKFLOW_VERSION
to match new version. - In
package.json
, also bump theversion
field to match, and runnpm install
to updatepackage-lock.json
. - Commit the changed files to the
planned-release/...
branch. - Create a PR for the planned release branch (e.g. "Planned release 0.2.1") and merge to
trunk
.
-
In
trunk
, add a 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-workflow
folder, run this command to create a plugin ZIP:git archive --prefix "vip-workflow/" <version> -o vip-workflow-<version>.zip # e.g. git archive --prefix "vip-workflow/" 1.0.2 -o vip-workflow-1.0.2.zip # # Creates a ZIP archive with the prefix folder "vip-workflow/" containing files from tag 1.0.2
-
Visit the vip-workflow-plugin 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."