Skip to content

Commit

Permalink
feat: support passing composer_auth values
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jan 19, 2024
1 parent 4f4977b commit 50dd73b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/REUSABLE_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ on:
required: false
default: error_reporting=E_ALL

secrets:
composer_auth:
description: The Composer auth tokens to use for private packages.
required: false

env:
COMPOSER_ROOT_VERSION: dev-main
FLARUM_TEST_TMP_DIR_LOCAL: tests/integration/tmp
COMPOSER_AUTH: ${{ secrets.composer_auth }}

jobs:
test:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/REUSABLE_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,15 @@ on:
bundlewatch_github_token:
description: The GitHub token to use for Bundlewatch.
required: false
composer_auth:
description: The Composer auth tokens to use for private packages.
required: false

env:
COMPOSER_ROOT_VERSION: dev-main
ci_script: ${{ inputs.js_package_manager == 'yarn' && 'yarn install --immutable' || 'npm ci' }}
cache_dependency_path: ${{ inputs.cache_dependency_path || format(inputs.js_package_manager == 'yarn' && '{0}/yarn.lock' || '{0}/package-lock.json', inputs.frontend_directory) }}
COMPOSER_AUTH: ${{ secrets.composer_auth }}

jobs:
build:
Expand Down

0 comments on commit 50dd73b

Please sign in to comment.