diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f020e69e9..207bd7192 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,7 @@ jobs: - name: Override Drupal version to dev for testing dev releases if: matrix.drupal-release == 'dev' run: | + composer config minimum-stability dev composer --verbose require --no-update drupal/core-recommended:11.0.x-dev composer --verbose require --no-update --dev drupal/core-dev:11.0.x-dev composer --verbose update diff --git a/README.md b/README.md index a4ebe8c85..84427395b 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,29 @@ cd some-dir composer require drupal/devel ``` +By default, this project is set to install only stable releases of dependencies, +as specified by `"minimum-stability": "stable"` in `composer.json`. If you need +to use non-stable releases (e.g., `alpha`, `beta`, `RC`), you can modify the +version constraint to allow for such versions. For instance, to require a beta +version of a module: + +```bash +composer require drupal/devel:1.0.0-beta1 +``` + +Alternatively, you can globally adjust the stability settings by modifying +`composer.json` to include the desired stability level and explicitly allow it: + +```json +{ + "minimum-stability": "beta", + "prefer-stable": true +} +``` + +This configuration ensures that stable releases are preferred, but allows the +installation of non-stable packages when necessary. + ### Adding libraries You can manage front-end asset libraries with Composer thanks to the diff --git a/composer.json b/composer.json index 8c1c366b4..a10f4e90d 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ } ], "require": { + "chi-teck/drupal-code-generator": "^4@alpha", "composer/installers": "^2.1", "cweagans/composer-patches": "^1.7", "drupal/core-composer-scaffold": "^11@alpha", @@ -36,7 +37,7 @@ "url": "https://asset-packagist.org" } ], - "minimum-stability": "dev", + "minimum-stability": "alpha", "prefer-stable": true, "autoload": { "classmap": [