File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 5
5
dependency_cache_key :
6
6
description : " The dependency cache key"
7
7
required : true
8
+ node_version :
9
+ description : " If set, temporarily set node version to 18 before installing, then revert to this version after."
10
+ required : false
8
11
9
12
runs :
10
13
using : " composite"
22
25
with :
23
26
name : build-output
24
27
28
+ - name : Set node version
29
+ if : inputs.node_version
30
+ uses : actions/setup-node@v4
31
+ with :
32
+ node-version-file : ' package.json'
33
+
25
34
- name : Install dependencies
26
35
if : steps.dep-cache.outputs.cache-hit != 'true'
27
36
run : yarn install --ignore-engines --frozen-lockfile
28
37
shell : bash
38
+
39
+ - name : Revert node version
40
+ if : inputs.node_version
41
+ uses : actions/setup-node@v4
42
+ with :
43
+ node-version : ${{ inputs.node_version }}
Original file line number Diff line number Diff line change @@ -477,6 +477,7 @@ jobs:
477
477
uses : ./.github/actions/restore-cache
478
478
with :
479
479
dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
480
+ node_version : ${{ matrix.node == 14 && '14' || '' }}
480
481
481
482
- name : Run affected tests
482
483
run : yarn test:pr:node --base=${{ github.event.pull_request.base.sha }}
@@ -709,6 +710,7 @@ jobs:
709
710
uses : ./.github/actions/restore-cache
710
711
with :
711
712
dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
713
+ node_version : ${{ matrix.node == 14 && '14' || '' }}
712
714
713
715
- name : Overwrite typescript version
714
716
if : matrix.typescript
You can’t perform that action at this time.
0 commit comments