Skip to content

Latest commit

 

History

History
45 lines (41 loc) · 1.08 KB

DEPLOY.md

File metadata and controls

45 lines (41 loc) · 1.08 KB

Steps to deploy

Preparation

  1. Install dependencies
    composer install
  2. Make sure the code is properly formatted.
    ./vendor/bin/phpcs

    If it shows formatting errors, then you can fix them with the ./vendor/bin/phpcbf command

  3. Run tests
    vendor/bin/phpunit tests
  4. Set SDK_VERSION constant in ConfigCatClient.php
  5. Commit & Push

Publish

  • Via git tag

    1. Create a new version tag.
      git tag v[MAJOR].[MINOR].[PATCH]

      Example: git tag v1.3.5

    2. Push the tag.
      git push origin --tags
  • Via Github release

    Create a new Github release with a new version tag and release notes.

Packagist

Make sure the new version is available on Packagist.

Update samples

Update and test sample apps with the new SDK version.

composer update configcat/configcat-client

To validate installed package version

composer show