Skip to Content
🚫
Important

The auth.json file is required for this to work.

Updating Wordpress Version.

In this example, we will be editing the training-ap-panorama.

Note: If you have already cloned the repository, don’t forget to run git pull origin "Branch_Name". You can skip step 1.

Step 1: Given that you have not cloned the existing repository yet

terminal
git clone [email protected]:training/training-ap-panorama.git

Video link here

Step 2: Create a Branch

🚫
Important

Follow Naming Guidelines.

terminal
git checkout -b 'Branch_Name'

Step 3: Open and Edit composer.json

Recommended way for Updating Wordpress version is via composer you can run composer command below.

terminal
composer require "roots/wordpress": "6.7.2",

Note: In some cases, Composer may fail to update and suggest adding the --with-dependencies option.

To resolve this, you can simply add the -W flag to your Composer command to force the update with dependencies.

terminal
composer require roots/wordpress:6.7.2 -W

or

Locate the roots/wordpress under "require"update the version to your desired one.

Then Run

terminal
composer update

Video link here

Step 4: Once you are done editing the files, add or stage your changes.

terminal
git add .

Step 5: Commit the changes you’ve made.

terminal
git commit -m '<commit_message>'

Step 6: Push your changes.

terminal
git push origin 'Branch_Name'

Step 7: Create Merge Request.

https://gitlab.forge99.com/your_project_group/your_project_url
Last updated on