|
22 | 22 | path: |
|
23 | 23 | **/dist
|
24 | 24 | !**/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') }} |
26 | 26 |
|
27 | 27 | # Only setup & build if there was no build cache hit
|
28 | 28 | - name: Use Node 16
|
|
62 | 62 | path: |
|
63 | 63 | **/dist
|
64 | 64 | !**/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') }} |
66 | 66 |
|
67 | 67 | - name: Install Dependencies
|
68 | 68 | run: yarn install --frozen-lockfile --prefer-offline
|
|
97 | 97 | path: |
|
98 | 98 | **/dist
|
99 | 99 | !**/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') }} |
101 | 101 |
|
102 | 102 | - name: Publish to Chromatic
|
103 | 103 | uses: chromaui/action@v1
|
@@ -132,7 +132,7 @@ jobs:
|
132 | 132 | path: |
|
133 | 133 | **/dist
|
134 | 134 | !**/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') }} |
136 | 136 |
|
137 | 137 | - name: tests
|
138 | 138 | run: yarn test --ci
|
@@ -163,7 +163,7 @@ jobs:
|
163 | 163 | path: |
|
164 | 164 | **/dist
|
165 | 165 | !**/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') }} |
167 | 167 |
|
168 | 168 | - name: validate
|
169 | 169 | run: yarn validate
|
0 commit comments