Skip to content

Commit

Permalink
Merge pull request #63 from alleyinteractive/feature/add-composer-ins…
Browse files Browse the repository at this point in the history
…tall-to-built-release

add composer install
  • Loading branch information
mogmarsh authored Nov 8, 2023
2 parents 9d27006 + c80b130 commit e6834b3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/built-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
required: false
default: false
type: boolean
composer_install:
description: 'Whether or not to run composer install'
required: false
default: false
type: boolean
php:
default: "8.1"
required: false
type: string
node:
default: 18
required: false
Expand Down Expand Up @@ -102,6 +111,7 @@ jobs:
RELEASE_BRANCH: "release/${{ needs.extract-version.outputs.tag_name }}-${{ github.run_number }}"
VERSION_NAME: ${{ needs.extract-version.outputs.package_version }}
VERSION_TAG: ${{ needs.extract-version.outputs.tag_name }}
COMPOSER_INSTALL: ${{ inputs.composer_install }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -113,6 +123,14 @@ jobs:
echo "VERSION_NAME=$VERSION_NAME"
echo "VERSION_TAG=$VERSION_TAG"
- name: Install dependencies
if: ${{ COMPOSER_INSTALL == true }}
uses: php-actions/composer@v6
with:
php_version: ${{ inputs.php }}
version: 2
args: --prefer-dist --no-dev

- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit e6834b3

Please sign in to comment.