File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed
packages/create-react-native-library/templates/common/$.github/actions/setup Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,12 @@ runs:
15
15
with :
16
16
path : |
17
17
**/node_modules
18
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
18
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
19
19
restore-keys : |
20
+ ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
20
21
${{ runner.os }}-yarn-
21
22
22
- - name : Check for changes
23
- uses : dorny/paths-filter@v2
24
- id : changes
25
- with :
26
- filters : |
27
- package-json:
28
- - '**/package.json'
29
-
30
23
- name : Install dependencies
31
- if : steps.yarn-cache.outputs.cache-hit != 'true' || steps.changes.outputs.package-json == 'true'
24
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
32
25
run : yarn install --frozen-lockfile
33
26
shell : bash
Original file line number Diff line number Diff line change @@ -15,20 +15,13 @@ runs:
15
15
with :
16
16
path : |
17
17
**/node_modules
18
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
18
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
19
19
restore-keys : |
20
+ ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
20
21
${{ runner.os }}-yarn-
21
22
22
- - name : Check for changes
23
- uses : dorny/paths-filter@v2
24
- id : changes
25
- with :
26
- filters : |
27
- package-json:
28
- - '**/package.json'
29
-
30
23
- name : Install dependencies
31
- if : steps.yarn-cache.outputs.cache-hit != 'true' || steps.changes.outputs.package-json == 'true'
24
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
32
25
run : |
33
26
yarn install --cwd example --frozen-lockfile
34
27
yarn install --frozen-lockfile
You can’t perform that action at this time.
0 commit comments