update cache logic

This commit is contained in:
Sidharth Vinod
2021-08-15 11:54:33 +05:30
parent 01efb70cf3
commit 0d15a2e487
+12
View File
@@ -17,6 +17,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build & Deploy
run: |
npm i -g yarn