Skip to content

Release

Marc Ginesta edited this page Feb 17, 2022 · 14 revisions

Steps to release the Magento Coding Standards

  1. Increment the version in composer.json
  2. Run composer update magento/magento-coding-standard to update the composer.lock
  3. Open a PR and merge it to develop branch
  4. Merge develop to master branch
  5. Create a new release on Github
  6. Ensure the new version is available in packagist
  7. 📢 Notify the #coding-standard channel (from the Magento Open Source workspace)
  8. Update composer.json from magento-api-index, mray and uct pointing to the new magento-coding-standard version
  9. Open a PR (for each repo) and merge it to develop
  10. Update composer.lock for magento-commerce/magento2ce and magento-commerce/magento2ee
  11. Open a PR (for both repos) and run tests @magento run all tests
  12. ☑️ Make sure that all tests are green 🟢 Specifically, we need Static tests to be green

Check magento-coding-standard against magento2ce and magento2ee prior to release

The following instructions work for both magento2ce and magento2ee

  1. Get the latest changes from develop branch git pull origin 2.4-develop ([email protected]:magento-commerce/magento2*e.git)
  2. Assuming that you have already merged your changes to develop, update composer.json file as follows:
{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/magento/magento-coding-standard"
        }
    ],
    "require": {
        "magento/magento-coding-standard": "dev-develop"
    }
}
  1. Open a PR (for both repos) and run tests using @magento run all tests
  2. If static tests fail 🔴 , then you need to perform changes in your code and you should not merge changes to master branch
  3. If tests all tests are green 🟢 (specifically, we need Static tests to be green) you can proceed:
  • Merge develop to master branch
  • Create a new release on Github
  • Ensure the new version is available in packagist
  • 📢 Notify the #coding-standard channel (from the Magento Open Source workspace)
  • Update composer.json from magento-api-index, mray and uct pointing to the new magento-coding-standard version
  • Open a PR (for each repo) and merge it to develop
  • Update composer.lock for magento-commerce/magento2ce and magento-commerce/magento2ee
  • Open a PR (for both repos) and run tests @magento run all tests
  • ☑️ Make sure that all tests are green 🟢 Specifically, we need Static tests to be green
Clone this wiki locally