From 5cd488dd8e89efae84846bd187db6c2cfb1fc159 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Tue, 15 Oct 2024 14:27:58 -0700 Subject: [PATCH] Replace composer.json ourselves --- .github/workflows/create-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 063bab12f64..8bbacb6bd63 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -49,11 +49,14 @@ jobs: - name: 'Initialize Craft 4 starter project' if: ${{ startsWith(github.event.client_payload.version, '4.') }} - run: 'composer create-project craftcms/craft:^4 ${{ env.PROJECT_DIRECTORY }}' + run: 'composer create-project craftcms/craft:^4 --no-scripts ${{ env.PROJECT_DIRECTORY }}' - name: 'Initialize Craft 5 starter project' if: ${{ startsWith(github.event.client_payload.version, '5.') }} - run: 'composer create-project craftcms/craft:^5 ${{ env.PROJECT_DIRECTORY }}' + run: 'composer create-project craftcms/craft:^5 --no-scripts ${{ env.PROJECT_DIRECTORY }}' + + - name: 'Replace composer.json with composer.json.default' + run: 'rm composer.json && mv composer.json.default composer.json' - name: 'Install specific Craft version' working-directory: ${{ env.PROJECT_DIRECTORY }}