Added node_modules cache

This commit is contained in:
Dmitriy Shishkov 2020-11-26 21:28:25 +05:00
parent db97c1ed52
commit 6391df2855
No known key found for this signature in database
GPG Key ID: D76D70029F55183E

View File

@ -10,10 +10,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- 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: Install packages
uses: borales/actions-yarn@v2.0.0
with:
cmd: install
cmd: --frozen-lockfile
- name: Run prettier
uses: borales/actions-yarn@v2.0.0