Update pr.yml

pull/7267/head
zomars 2023-02-18 09:55:49 -07:00
parent f96af3f708
commit 8fe421e8d5
1 changed files with 6 additions and 6 deletions

View File

@ -35,11 +35,11 @@ jobs:
- name: Restore node_modules from cache
uses: actions/cache@v3
env:
cache_name: node-modules-yarn
cache_fingerprint: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }}
cache-name: node-modules-yarn
cache-fingerprint: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }}
with:
path: node_modules
key: ${{ runner.os }}-${{ env.cache_name }}-${{ env.cache_fingerprint }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-fingerprint }}
- name: lint the code
run: yarn lint
build:
@ -70,11 +70,11 @@ jobs:
- name: Restore node_modules from cache
uses: actions/cache@v3
env:
cache_name: node-modules-yarn
cache_fingerprint: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }}
cache-name: node-modules-yarn
cache-fingerprint: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }}
with:
path: node_modules
key: ${{ runner.os }}-${{ env.cache_name }}-${{ env.cache_fingerprint }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-fingerprint }}
# figure the better way supporting all the packages
- name: Fake yarn postinstall