Skip to content

Commit

Permalink
ci: apply patches when cache-hit
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Aug 7, 2023
1 parent 2465ed8 commit 9759702
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ runs:
key: ${{ runner.os }}-blade-${{ hashFiles('**/yarn.lock') }}

# cache miss - install packages with `yarn --frozen-lockfile`
# cache hit - download packages from the cache
# cache hit - download packages from the cache and explicitly run postinstall script
- name: install packages if cache miss
run: yarn --frozen-lockfile
shell: bash
if: steps.cache.outputs.cache-hit != 'true'

- name: Run postinstall script
run: yarn postinstall
shell: bash
if: steps.cache.outputs.cache-hit == 'true'

0 comments on commit 9759702

Please sign in to comment.