From bfc4bff4ab882f7d8ace0ea6fd056a2b62d45859 Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Mon, 20 Jul 2020 15:56:03 +0200 Subject: [PATCH] Ensure that composer is available before yarn install --- .github/workflows/full-site-editing-plugin.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/full-site-editing-plugin.yml b/.github/workflows/full-site-editing-plugin.yml index c794789311bcc..43e1d78bd67ba 100644 --- a/.github/workflows/full-site-editing-plugin.yml +++ b/.github/workflows/full-site-editing-plugin.yml @@ -14,6 +14,11 @@ jobs: - name: Checkout code uses: actions/checkout@HEAD + - name: Run composer + uses: nick-zh/composer-php@HEAD + with: + action: 'install' + # https://github.com/actions/cache/blob/HEAD/examples.md#node---lerna - name: Restore node_modules cache id: cache @@ -28,11 +33,6 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile # Not needed when restoring from cache. - - name: Run composer - uses: nick-zh/composer-php@HEAD - with: - action: 'install' - - name: Build packages if: steps.cache.outputs.cache-hit == 'true' run: yarn run postinstall # Needed only when not running yarn install.