Skip to content

Commit

Permalink
Merge pull request #14 from ItinerisLtd/fix-composer-private-packagist
Browse files Browse the repository at this point in the history
fix: Restore Private Packagist setup command
  • Loading branch information
codepuncher authored Oct 9, 2023
2 parents 86a8df6 + 756b922 commit c661d81
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-mu-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
php-version: ${{ inputs.PHP_VERSION }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGIST_TOKEN: ${{ secrets.PRIVATE_PACKAGIST_TOKEN }}

- name: Get composer cache directory
id: composer-cache
Expand All @@ -40,6 +39,10 @@ jobs:
key: ${{ runner.os }}-${{ inputs.PHP_VERSION }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-${{ inputs.PHP_VERSION }}-composer-

- name: Setup Composer Private Packagist authentication
# yamllint disable-line rule:line-length
run: composer config --global --auth http-basic.repo.packagist.com itineris ${{ secrets.PRIVATE_PACKAGIST_TOKEN }}

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ jobs:
php-version: ${{ inputs.PHP_VERSION }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGIST_TOKEN: ${{ secrets.PRIVATE_PACKAGIST_TOKEN }}

- name: Get composer cache directory
id: composer-cache
Expand All @@ -109,6 +108,10 @@ jobs:
key: ${{ runner.os }}-${{ inputs.PHP_VERSION }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-${{ inputs.PHP_VERSION }}-composer-

- name: Setup Composer Private Packagist authentication
# yamllint disable-line rule:line-length
run: composer config --global --auth http-basic.repo.packagist.com itineris ${{ secrets.PRIVATE_PACKAGIST_TOKEN }}

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# yamllint disable-line rule:document-start
name: "Labeler"

# yamllint disable-line rule:truthy
on:
workflow_call:
workflow_dispatch:
Expand All @@ -9,6 +11,7 @@ on:

jobs:
triage:
# yamllint disable-line rule:line-length
if: ${{ github.actor == 'kodiakhq[bot]' || github.actor == 'dependabot[bot]' }}
permissions:
contents: read
Expand Down

0 comments on commit c661d81

Please sign in to comment.