Added node_modules cache
This commit is contained in:
parent
db97c1ed52
commit
6391df2855
14
.github/workflows/code-style.yml
vendored
14
.github/workflows/code-style.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user