Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add composer install #63

Merged
merged 4 commits into from
Nov 8, 2023
Merged
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
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