mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-17 06:11:20 +00:00
fix(supported-version): handle semver-ish values from old magento verisons
This commit is contained in:
@@ -12,7 +12,8 @@ export const getUsableVersions = (project: string): string[] => {
|
||||
*/
|
||||
|
||||
// Packagist retired support for Composer 1 on 2025-09-01.
|
||||
if (value.composer && semver.lt(value.composer.toString(), '2.0.0')) {
|
||||
const composerVersion = semver.coerce(value.composer.toString());
|
||||
if (composerVersion && semver.lt(composerVersion, '2.0.0')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user