Skip to content

Commit 1c985d4

Browse files
committed
add back in redundant yarn cache step
1 parent bbb31b4 commit 1c985d4

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.github/workflows/components-test-build-deploy.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ jobs:
8080
- uses: 'actions/setup-node@v3'
8181
with:
8282
node-version: '16'
83+
- name: 'install udev for usb-detection'
84+
run: sudo apt-get update && sudo apt-get install libudev-dev
85+
- name: 'cache yarn cache'
86+
uses: actions/cache@v3
87+
with:
88+
path: |
89+
${{ github.workspace }}/.yarn-cache
90+
${{ github.workspace }}/.npm-cache
91+
key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
92+
restore-keys: |
93+
js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-
94+
- name: 'setup-js'
95+
run: |
96+
npm config set cache ./.npm-cache
97+
yarn config set cache-folder ./.yarn-cache
98+
yarn config set network-timeout 60000
99+
yarn
83100
- name: 'build components'
84101
run: make -C components
85102
- name: 'upload github artifact'
@@ -124,6 +141,23 @@ jobs:
124141
- uses: 'actions/setup-node@v3'
125142
with:
126143
node-version: '16'
144+
- name: 'install udev for usb-detection'
145+
run: sudo apt-get update && sudo apt-get install libudev-dev
146+
- name: 'cache yarn cache'
147+
uses: actions/cache@v3
148+
with:
149+
path: |
150+
${{ github.workspace }}/.yarn-cache
151+
${{ github.workspace }}/.npm-cache
152+
key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
153+
restore-keys: |
154+
js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-
155+
- name: 'setup-js'
156+
run: |
157+
npm config set cache ./.npm-cache
158+
yarn config set cache-folder ./.yarn-cache
159+
yarn config set network-timeout 60000
160+
yarn
127161
- name: 'set complex environment variables'
128162
id: 'set-vars'
129163
uses: actions/github-script@v6
@@ -161,6 +195,23 @@ jobs:
161195
with:
162196
node-version: '16'
163197
registry-url: 'https://registry.npmjs.org'
198+
- name: 'install udev for usb-detection'
199+
run: sudo apt-get update && sudo apt-get install libudev-dev
200+
- name: 'cache yarn cache'
201+
uses: actions/cache@v3
202+
with:
203+
path: |
204+
${{ github.workspace }}/.yarn-cache
205+
${{ github.workspace }}/.npm-cache
206+
key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
207+
restore-keys: |
208+
js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-
209+
- name: 'setup-js'
210+
run: |
211+
npm config set cache ./.npm-cache
212+
yarn config set cache-folder ./.yarn-cache
213+
yarn config set network-timeout 60000
214+
yarn
164215
- name: 'build library'
165216
run: |
166217
make -C components lib

.github/workflows/shared-data-test-lint-deploy.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,21 @@ jobs:
228228
with:
229229
node-version: '16'
230230
registry-url: 'https://registry.npmjs.org'
231+
- name: 'cache yarn cache'
232+
uses: actions/cache@v3
233+
with:
234+
path: |
235+
${{ github.workspace }}/.yarn-cache
236+
${{ github.workspace }}/.npm-cache
237+
key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
238+
restore-keys: |
239+
js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-
240+
- name: 'js deps'
241+
run: |
242+
npm config set cache ./.npm-cache
243+
yarn config set cache-folder ./.yarn-cache
244+
yarn config set network-timeout 60000
245+
yarn
231246
- name: 'build library'
232247
run: |
233248
make -C shared-data lib-js

0 commit comments

Comments
 (0)