Skip to content

Commit

Permalink
Ensure that composer is available before yarn install
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jul 20, 2020
1 parent cbf47d3 commit bfc4bff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/full-site-editing-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit bfc4bff

Please sign in to comment.