Skip to content

Commit 6238a68

Browse files
Update pr.yml (#1929)
Co-authored-by: Brooke Scarlett Yalof <[email protected]>
1 parent 1bcadef commit 6238a68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
path: |
2323
**/dist
2424
!**/node_modules
25-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/{packages,tools}', '!**/node_modules', '!**/dist') }}
25+
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
2626

2727
# Only setup & build if there was no build cache hit
2828
- name: Use Node 16
@@ -62,7 +62,7 @@ jobs:
6262
path: |
6363
**/dist
6464
!**/node_modules
65-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/{packages,tools}', '!**/node_modules', '!**/dist') }}
65+
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
6666

6767
- name: Install Dependencies
6868
run: yarn install --frozen-lockfile --prefer-offline
@@ -97,7 +97,7 @@ jobs:
9797
path: |
9898
**/dist
9999
!**/node_modules
100-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/{packages,tools}', '!**/node_modules', '!**/dist') }}
100+
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
101101

102102
- name: Publish to Chromatic
103103
uses: chromaui/action@v1
@@ -132,7 +132,7 @@ jobs:
132132
path: |
133133
**/dist
134134
!**/node_modules
135-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/{packages,tools}', '!**/node_modules', '!**/dist') }}
135+
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
136136

137137
- name: tests
138138
run: yarn test --ci
@@ -163,7 +163,7 @@ jobs:
163163
path: |
164164
**/dist
165165
!**/node_modules
166-
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/{packages,tools}', '!**/node_modules', '!**/dist') }}
166+
key: ${{ runner.os }}-build-cache-${{ hashFiles('**/src/', '!**/node_modules', '!**/dist') }}
167167

168168
- name: validate
169169
run: yarn validate

0 commit comments

Comments
 (0)