File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 12
12
if : github.event.pull_request.merged == true
13
13
runs-on : ubuntu-latest
14
14
env :
15
+ NODE_VERSION : 20.x
15
16
GH_TOKEN : ${{ secrets.MONOREPO_SYNC_TOKEN }}
16
17
PR_NUMBER : ${{ github.event.pull_request.number }}
17
18
PR_TITLE : ${{ github.event.pull_request.title }}
@@ -29,16 +30,28 @@ jobs:
29
30
- name : Setup Node.js
30
31
uses : actions/setup-node@v4
31
32
with :
32
- node-version : ' 18 '
33
+ node-version : ${{env.NODE_VERSION}}
33
34
34
- - name : Install dependencies
35
- # Install project dependencies (including dev dependencies)
36
- run : npm install
35
+ - name : Cache node modules
36
+ uses : actions/cache@v3
37
+ with :
38
+ path : node_modules
39
+ key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
40
+ restore-keys : |
41
+ ${{ runner.os }}-node-
42
+
43
+ - name : Installing dependencies
44
+ if : steps.cache.outputs.cache-hit != 'true'
45
+ uses : borales/actions-yarn@v4
46
+ with :
47
+ cmd : install --frozen-lockfile
48
+
37
49
- name : Install zx
38
- run : npm install zx
50
+ run : yarn add zx
39
51
40
52
- name : Install monorepo-sync package
41
- run : npm install git+https://github.com/formio/monorepo-sync.git
53
+ run : yarn add git+https://github.com/formio/monorepo-sync.git
54
+
42
55
- name : Clone Monorepo
43
56
run : |
44
57
gh repo clone formio/formio-monorepo monorepo -- --depth=1
You can’t perform that action at this time.
0 commit comments