Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManiruzzamanAkash/3392239d9e8bc09217bac4c31c46c6c8 to your computer and use it in GitHub Desktop.
Save ManiruzzamanAkash/3392239d9e8bc09217bac4c31c46c6c8 to your computer and use it in GitHub Desktop.
WordPress Plugin Release using Github and WordPress

WordPress Plugin Release using Github and WordPress

Step 1: Cloning & Checking out

  • Clone the repository, checkout to develop
  • git pull for any latest changes

Step 2: Git flow

  • Make sure to have git flow installed
  • Run git flow init
  • Run git flow release start <version> [ version should be incremented by 1 from the last release ]

Step 3: Change Plugin files

  • Change the version in plugin_dir_name/plugin-main-file.php
  • Change the Tested up to, Stable tag in plugin_dir_name/readme.txt
  • Change the plugin_dir_name/readme.md file according to the new version
  • Change the version in plugin_dir_name/package.json

Step 4: Building and Make zip

  • Run npm install
  • Run npm run build
  • Run npm run zip

Step 5: Get the zip file tested

  • The zip should be tested by the QA team

Step 6: Release

  • Run git flow release finish <version>
  • Run git push
  • Run git checkout master
  • Run git push
  • Run git push --tags

Step 7: Update the stable tag

  • Draft a new release on GitHub
  • Select current tag
  • Update changelog
  • Publish the release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment