Skip to content

Commit 06483bc

Browse files
authored
refactor: rm node_mods caching in release workflow (#5895)
1 parent 9012ddf commit 06483bc

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

.github/workflows/release.yaml

-20
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,12 @@ jobs:
6767
- name: Decompress npm package
6868
run: tar -xzf package.tar.gz
6969

70-
- name: Fetch dependencies from cache
71-
id: cache-node-modules
72-
uses: actions/cache@v3
73-
with:
74-
path: "**/node_modules"
75-
key: yarn-build-linux-amd64-${{ hashFiles('**/yarn.lock') }}
76-
restore-keys: |
77-
yarn-build-linux-amd64-
78-
7970
# NOTE: && here is deliberate - GitHub puts each line in its own `.sh`
8071
# file when running inside a docker container.
8172
- name: Build standalone release
8273
run: source scl_source enable devtoolset-9 && npm run release:standalone
8374

8475
- name: Install test dependencies
85-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
8676
run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
8777

8878
- name: Run integration tests on standalone release
@@ -237,20 +227,10 @@ jobs:
237227
- name: Decompress npm package
238228
run: tar -xzf package.tar.gz
239229

240-
- name: Fetch dependencies from cache
241-
id: cache-node-modules
242-
uses: actions/cache@v3
243-
with:
244-
path: "**/node_modules"
245-
key: yarn-build-macos-${{ hashFiles('**/yarn.lock') }}
246-
restore-keys: |
247-
yarn-build-macos-
248-
249230
- name: Build standalone release
250231
run: npm run release:standalone
251232

252233
- name: Install test dependencies
253-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
254234
run: SKIP_SUBMODULE_DEPS=1 yarn install
255235

256236
- name: Run native module tests on standalone release

0 commit comments

Comments
 (0)