Skip to content

Commit

Permalink
Replace composer.json ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Oct 15, 2024
1 parent 5b5bca0 commit 5cd488d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 5cd488d

Please sign in to comment.