Skip to content

Commit

Permalink
upgrade release workflow to allow to install only required dependenci…
Browse files Browse the repository at this point in the history
…es (no vendor-bin)
  • Loading branch information
llaville committed Nov 5, 2024
1 parent c6950ec commit 8b542df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
inputs:
composer-options:
description: "Composer options for ramsey/composer-install GitHub Action"
required: false
default: "--prefer-dist --no-scripts"
type: string

permissions:
contents: write
Expand Down Expand Up @@ -51,7 +57,7 @@ jobs:
name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
composer-options: "--prefer-dist"
composer-options: ${{ inputs.composer-options }}
env: # https://github.com/ramsey/composer-install?tab=readme-ov-file#fork-and-private-repositories
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_AUTH }}"}}'

Expand Down

0 comments on commit 8b542df

Please sign in to comment.