mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
feat: support composer auth (#3961)
This commit is contained in:
6
.github/workflows/REUSABLE_backend.yml
vendored
6
.github/workflows/REUSABLE_backend.yml
vendored
@@ -52,10 +52,16 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: error_reporting=E_ALL
|
default: error_reporting=E_ALL
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
composer_auth:
|
||||||
|
description: The Composer auth tokens to use for private packages.
|
||||||
|
required: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
COMPOSER_ROOT_VERSION: dev-main
|
COMPOSER_ROOT_VERSION: dev-main
|
||||||
# `inputs.composer_directory` defaults to `inputs.backend_directory`
|
# `inputs.composer_directory` defaults to `inputs.backend_directory`
|
||||||
FLARUM_TEST_TMP_DIR_LOCAL: tests/integration/tmp
|
FLARUM_TEST_TMP_DIR_LOCAL: tests/integration/tmp
|
||||||
|
COMPOSER_AUTH: ${{ secrets.composer_auth }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
4
.github/workflows/REUSABLE_frontend.yml
vendored
4
.github/workflows/REUSABLE_frontend.yml
vendored
@@ -90,11 +90,15 @@ on:
|
|||||||
bundlewatch_github_token:
|
bundlewatch_github_token:
|
||||||
description: The GitHub token to use for Bundlewatch.
|
description: The GitHub token to use for Bundlewatch.
|
||||||
required: false
|
required: false
|
||||||
|
composer_auth:
|
||||||
|
description: The Composer auth tokens to use for private packages.
|
||||||
|
required: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
COMPOSER_ROOT_VERSION: dev-main
|
COMPOSER_ROOT_VERSION: dev-main
|
||||||
ci_script: ${{ inputs.js_package_manager == 'yarn' && 'yarn install --immutable' || 'npm ci' }}
|
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) }}
|
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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
Reference in New Issue
Block a user