Skip to content

Commit f5ffce2

Browse files
committed
invalidate cache
1 parent 97bad9c commit f5ffce2

6 files changed

Lines changed: 32 additions & 32 deletions

File tree

.github/workflows-src/partials/dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
path: |
66
packages/*/dist
77
packages/react-styles/css
8-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
8+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
99
- name: Build dist
1010
run: yarn build && yarn build:umd
1111
if: steps.dist.outputs.cache-hit != 'true'

.github/workflows-src/partials/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ docs:
1515
name: Cache webpack
1616
with:
1717
path: '.cache'
18-
key: ${{ runner.os }}-v4-${{ hashFiles('yarn.lock') }}
18+
key: ${{ runner.os }}-v4-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
1919
- name: Build docs
2020
run: yarn build:docs
2121
- name: Upload docs

.github/workflows-src/partials/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
node_modules
1010
**/node_modules
1111
~/.cache/Cypress
12-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
12+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
1313
- run: yarn install --frozen-lockfile
1414
if: steps.yarn-cache.outputs.cache-hit != 'true'
1515

.github/workflows-src/partials/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lint:
1111
name: Load lint cache
1212
with:
1313
path: '.eslintcache'
14-
key: ${{ runner.os }}-lint-14-${{ hashFiles('yarn.lock') }}
14+
key: ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
1515
- name: ESLint
1616
run: yarn lint:ts
1717
- name: MDLint

.github/workflows/pr-preview.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
node_modules
2727
**/node_modules
2828
~/.cache/Cypress
29-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
29+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
3030
- run: yarn install --frozen-lockfile
3131
if: steps.yarn-cache.outputs.cache-hit != 'true'
3232
- uses: actions/cache@v2
@@ -36,7 +36,7 @@ jobs:
3636
path: |
3737
packages/*/dist
3838
packages/react-styles/css
39-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
39+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
4040
- name: Build dist
4141
run: yarn build && yarn build:umd
4242
if: steps.dist.outputs.cache-hit != 'true'
@@ -65,15 +65,15 @@ jobs:
6565
node_modules
6666
**/node_modules
6767
~/.cache/Cypress
68-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
68+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
6969
- run: yarn install --frozen-lockfile
7070
if: steps.yarn-cache.outputs.cache-hit != 'true'
7171
- uses: actions/cache@v2
7272
id: lint-cache
7373
name: Load lint cache
7474
with:
7575
path: '.eslintcache'
76-
key: ${{ runner.os }}-lint-14-${{ hashFiles('yarn.lock') }}
76+
key: ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7777
- name: ESLint
7878
run: yarn lint:ts
7979
- name: MDLint
@@ -105,7 +105,7 @@ jobs:
105105
node_modules
106106
**/node_modules
107107
~/.cache/Cypress
108-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
108+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
109109
- run: yarn install --frozen-lockfile
110110
if: steps.yarn-cache.outputs.cache-hit != 'true'
111111
- uses: actions/cache@v2
@@ -115,7 +115,7 @@ jobs:
115115
path: |
116116
packages/*/dist
117117
packages/react-styles/css
118-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
118+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
119119
- name: Build dist
120120
run: yarn build && yarn build:umd
121121
if: steps.dist.outputs.cache-hit != 'true'
@@ -149,7 +149,7 @@ jobs:
149149
node_modules
150150
**/node_modules
151151
~/.cache/Cypress
152-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
152+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
153153
- run: yarn install --frozen-lockfile
154154
if: steps.yarn-cache.outputs.cache-hit != 'true'
155155
- uses: actions/cache@v2
@@ -159,7 +159,7 @@ jobs:
159159
path: |
160160
packages/*/dist
161161
packages/react-styles/css
162-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
162+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
163163
- name: Build dist
164164
run: yarn build && yarn build:umd
165165
if: steps.dist.outputs.cache-hit != 'true'
@@ -168,7 +168,7 @@ jobs:
168168
name: Cache webpack
169169
with:
170170
path: '.cache'
171-
key: ${{ runner.os }}-v4-${{ hashFiles('yarn.lock') }}
171+
key: ${{ runner.os }}-v4-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
172172
- name: Build docs
173173
run: yarn build:docs
174174
- name: Upload docs
@@ -204,7 +204,7 @@ jobs:
204204
node_modules
205205
**/node_modules
206206
~/.cache/Cypress
207-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
207+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
208208
- run: yarn install --frozen-lockfile
209209
if: steps.yarn-cache.outputs.cache-hit != 'true'
210210
- uses: actions/cache@v2
@@ -214,7 +214,7 @@ jobs:
214214
path: |
215215
packages/*/dist
216216
packages/react-styles/css
217-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
217+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
218218
- name: Build dist
219219
run: yarn build && yarn build:umd
220220
if: steps.dist.outputs.cache-hit != 'true'
@@ -255,7 +255,7 @@ jobs:
255255
node_modules
256256
**/node_modules
257257
~/.cache/Cypress
258-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
258+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
259259
- run: yarn install --frozen-lockfile
260260
if: steps.yarn-cache.outputs.cache-hit != 'true'
261261
- uses: actions/cache@v2
@@ -265,7 +265,7 @@ jobs:
265265
path: |
266266
packages/*/dist
267267
packages/react-styles/css
268-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
268+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
269269
- name: Build dist
270270
run: yarn build && yarn build:umd
271271
if: steps.dist.outputs.cache-hit != 'true'

.github/workflows/release.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
node_modules
3030
**/node_modules
3131
~/.cache/Cypress
32-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
32+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
3333
- run: yarn install --frozen-lockfile
3434
if: steps.yarn-cache.outputs.cache-hit != 'true'
3535
- uses: actions/cache@v2
@@ -39,7 +39,7 @@ jobs:
3939
path: |
4040
packages/*/dist
4141
packages/react-styles/css
42-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
42+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
4343
- name: Build dist
4444
run: yarn build && yarn build:umd
4545
if: steps.dist.outputs.cache-hit != 'true'
@@ -68,15 +68,15 @@ jobs:
6868
node_modules
6969
**/node_modules
7070
~/.cache/Cypress
71-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
71+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7272
- run: yarn install --frozen-lockfile
7373
if: steps.yarn-cache.outputs.cache-hit != 'true'
7474
- uses: actions/cache@v2
7575
id: lint-cache
7676
name: Load lint cache
7777
with:
7878
path: '.eslintcache'
79-
key: ${{ runner.os }}-lint-14-${{ hashFiles('yarn.lock') }}
79+
key: ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
8080
- name: ESLint
8181
run: yarn lint:ts
8282
- name: MDLint
@@ -108,7 +108,7 @@ jobs:
108108
node_modules
109109
**/node_modules
110110
~/.cache/Cypress
111-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
111+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
112112
- run: yarn install --frozen-lockfile
113113
if: steps.yarn-cache.outputs.cache-hit != 'true'
114114
- uses: actions/cache@v2
@@ -118,7 +118,7 @@ jobs:
118118
path: |
119119
packages/*/dist
120120
packages/react-styles/css
121-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
121+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
122122
- name: Build dist
123123
run: yarn build && yarn build:umd
124124
if: steps.dist.outputs.cache-hit != 'true'
@@ -152,7 +152,7 @@ jobs:
152152
node_modules
153153
**/node_modules
154154
~/.cache/Cypress
155-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
155+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
156156
- run: yarn install --frozen-lockfile
157157
if: steps.yarn-cache.outputs.cache-hit != 'true'
158158
- uses: actions/cache@v2
@@ -162,7 +162,7 @@ jobs:
162162
path: |
163163
packages/*/dist
164164
packages/react-styles/css
165-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
165+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
166166
- name: Build dist
167167
run: yarn build && yarn build:umd
168168
if: steps.dist.outputs.cache-hit != 'true'
@@ -171,7 +171,7 @@ jobs:
171171
name: Cache webpack
172172
with:
173173
path: '.cache'
174-
key: ${{ runner.os }}-v4-${{ hashFiles('yarn.lock') }}
174+
key: ${{ runner.os }}-v4-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
175175
- name: Build docs
176176
run: yarn build:docs
177177
- name: Upload docs
@@ -207,7 +207,7 @@ jobs:
207207
node_modules
208208
**/node_modules
209209
~/.cache/Cypress
210-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
210+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
211211
- run: yarn install --frozen-lockfile
212212
if: steps.yarn-cache.outputs.cache-hit != 'true'
213213
- uses: actions/cache@v2
@@ -217,7 +217,7 @@ jobs:
217217
path: |
218218
packages/*/dist
219219
packages/react-styles/css
220-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
220+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
221221
- name: Build dist
222222
run: yarn build && yarn build:umd
223223
if: steps.dist.outputs.cache-hit != 'true'
@@ -258,7 +258,7 @@ jobs:
258258
node_modules
259259
**/node_modules
260260
~/.cache/Cypress
261-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
261+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
262262
- run: yarn install --frozen-lockfile
263263
if: steps.yarn-cache.outputs.cache-hit != 'true'
264264
- uses: actions/cache@v2
@@ -268,7 +268,7 @@ jobs:
268268
path: |
269269
packages/*/dist
270270
packages/react-styles/css
271-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
271+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
272272
- name: Build dist
273273
run: yarn build && yarn build:umd
274274
if: steps.dist.outputs.cache-hit != 'true'
@@ -305,7 +305,7 @@ jobs:
305305
node_modules
306306
**/node_modules
307307
~/.cache/Cypress
308-
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
308+
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
309309
- run: yarn install --frozen-lockfile
310310
if: steps.yarn-cache.outputs.cache-hit != 'true'
311311
- uses: actions/cache@v2
@@ -315,7 +315,7 @@ jobs:
315315
path: |
316316
packages/*/dist
317317
packages/react-styles/css
318-
key: ${{ runner.os }}-dist-14-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
318+
key: ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
319319
- name: Build dist
320320
run: yarn build && yarn build:umd
321321
if: steps.dist.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)