Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/download-missing-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ jobs:
git config user.name "GitHub Actions Bot"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Configure Composer Authentication
run: |
mkdir -p ~/.composer
echo '${{ secrets.COMPOSER_AUTH }}' > ~/.composer/auth.json

- name: Run mirror script
run: node src/make/mirror.js --outputDir=build

- name: Run download script
run: php bin/download-all-missing-packages-from-repo-magento-com.php
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

- name: Check for changes
id: git-check
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
46 changes: 23 additions & 23 deletions src/build-config/mageos-release-build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {mergeBuildConfigs} = require('../utils');
const releaseBuildConfig = {
'magento2': {
repoUrl: 'https://github.com/mage-os/mageos-magento2.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
packageIndividual: [
{
Expand All @@ -16,112 +16,112 @@ const releaseBuildConfig = {
},
'security-package': {
repoUrl: 'https://github.com/mage-os/mageos-security-package.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'inventory': {
repoUrl: 'https://github.com/mage-os/mageos-inventory.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'inventory-composer-installer': {
repoUrl: 'https://github.com/mage-os/mageos-inventory-composer-installer.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'page-builder': {
repoUrl: 'https://github.com/mage-os/mageos-magento2-page-builder.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'adobe-stock-integration': {
repoUrl: 'https://github.com/mage-os/mageos-adobe-stock-integration.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'magento-allure-phpunit': {
repoUrl: 'https://github.com/mage-os/mageos-magento-allure-phpunit.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.1.0',
},
'magento-composer-installer': {
repoUrl: 'https://github.com/mage-os/mageos-magento-composer-installer.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'composer': {
repoUrl: 'https://github.com/mage-os/mageos-composer.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'composer-root-update-plugin': {
repoUrl: 'https://github.com/mage-os/mageos-composer-root-update-plugin.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'composer-dependency-version-audit-plugin': {
repoUrl: 'https://github.com/mage-os/mageos-composer-dependency-version-audit-plugin.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento2-sample-data': {
repoUrl: 'https://github.com/mage-os/mageos-magento2-sample-data.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'magento-coding-standard': {
repoUrl: 'https://github.com/mage-os/mageos-magento-coding-standard.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'magento2-functional-testing-framework': {
repoUrl: 'https://github.com/mage-os/mageos-magento2-functional-testing-framework.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
'magento-zend-db': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-db.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zend-loader': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-loader.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zend-pdf': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-pdf.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zend-cache': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-cache.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zend-exception': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-exception.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zend-log': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-log.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zend-memory': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zend-memory.git',
ref: 'release/1.x',
ref: 'mage-os',
fromTag: '1.0.0',
},
'magento-zf-db': {
repoUrl: 'https://github.com/mage-os/mageos-magento-zf-db.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.1.0',
},
'php-compatibility-fork': {
repoUrl: 'https://github.com/mage-os/mageos-PHPCompatibilityFork.git',
ref: 'release/1.x',
ref: 'main',
fromTag: '1.0.0',
},
// 'theme-adminhtml-m137': {
Expand Down
30 changes: 27 additions & 3 deletions src/package-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,30 @@ async function getComposerJson(instruction, package, ref) {
return fs.readFileSync(package.composerJsonFile, 'utf8');
}

/**
* Determine the stability level of a composer version string
* @param {string} version - The version string to check (e.g. "2.4.0-beta1", "1.0.0", "dev-master")
* @returns {string} - Returns 'dev', 'alpha', 'beta', 'RC', 'stable', or 'patch'
*/
function getVersionStability(version) {
version = version.toLowerCase();

if (version.startsWith('dev-') || version.includes('-dev')) {
return 'dev';
}
if (version.includes('-alpha')) {
return 'alpha';
}
if (version.includes('-beta')) {
return 'beta';
}
if (version.includes('-rc')) {
return 'RC';
}

return 'stable';
}

/**
* @param {repositoryBuildDefinition} instruction
* @param {packageDefinition} package
Expand Down Expand Up @@ -545,18 +569,18 @@ async function determineMagentoCommunityEditionProject(url, ref, release) {
*
* @param {repositoryBuildDefinition} instruction
* @param {buildState} release
* @param {{minimumStability:String|undefined, description:String|undefined}} options
* @param {{description:String|undefined, transform: Array<String, Function>}} options
* @returns {Promise<{}>}
*/
async function createMagentoCommunityEditionProject(instruction, release, options) {
const defaults = {
minimumStability: 'stable',
description: 'eCommerce Platform for Growth (Community Edition)',
transform: {},
};
const {minimumStability, description, transform} = Object.assign(defaults, (options || {}))
const {description, transform} = Object.assign(defaults, (options || {}))
const name = `${instruction.vendor}/project-community-edition`;
const version = release.version || release.dependencyVersions[name] || release.ref;
const minimumStability = getVersionStability(version);
const {packageFilepath, files} = await createComposerJsonOnlyPackage(
instruction,
release,
Expand Down
5 changes: 1 addition & 4 deletions src/release-branch-build-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ async function processBuildInstruction(instruction, release) {
console.log('Packaging Magento Community Edition Project');
built = await createMagentoCommunityEditionProject(
instruction,
release,
{
minimumStability: 'alpha'
}
release
);
Object.assign(packages, built);
}
Expand Down
3 changes: 1 addition & 2 deletions src/release-build-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ async function buildMageOsProjectCommunityEditionMetapackage(instruction, releas
instruction,
release,
{
minimumStability: 'stable',
description: 'Community built eCommerce Platform for Growth',
description: 'Community-built eCommerce Platform for Growth',
transform: {
[`${instruction.vendor}/project-community-edition`]: [
(composerConfig) => {
Expand Down
Loading