Skip to content

Latest commit

 

History

History
executable file
·
21 lines (14 loc) · 1.33 KB

build-production-plugin.md

File metadata and controls

executable file
·
21 lines (14 loc) · 1.33 KB

Build production plugin

{% hint style="warning" %} Never adjust package.json's version and CHANGELOG.md manually! {% endhint %}

Building a production plugin is completely covered by the GitLab CI. That means if you push changes to the master branch the pipeline automatically generates the installable .zip file and syncs it to wordpress.org (if configured). The plugin itself can be downloaded through GitLab Releases or Job artifacts. package.json``index.php and CHANGELOG.md is automatically generated by yarn lerna publish and yarn build.

{% page-ref page="../gitlab-integration/predefined-pipeline.md" %}

{% page-ref page="../gitlab-integration/deploy-wp-org.md" %}

{% hint style="info" %} Ensure GITLAB_TOKEN is set with a personal token in your GitLab CI variables. Learn more here. {% endhint %}

{% hint style="success" %} Nothing more to say, simply follow the Git flow and automate the release management! {% endhint %}

If you really want to build the plugin locally, you can run yarn build in your plugin folder.