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 1212 if : github.event.pull_request.merged == true
1313 runs-on : ubuntu-latest
1414 env :
15+ NODE_VERSION : 20.x
1516 GH_TOKEN : ${{ secrets.MONOREPO_SYNC_TOKEN }}
1617 PR_NUMBER : ${{ github.event.pull_request.number }}
1718 PR_TITLE : ${{ github.event.pull_request.title }}
@@ -29,16 +30,28 @@ jobs:
2930 - name : Setup Node.js
3031 uses : actions/setup-node@v4
3132 with :
32- node-version : ' 18 '
33+ node-version : ${{env.NODE_VERSION}}
3334
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+
3749 - name : Install zx
38- run : npm install zx
50+ run : yarn add zx
3951
4052 - 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+
4255 - name : Clone Monorepo
4356 run : |
4457 gh repo clone formio/formio-monorepo monorepo -- --depth=1
You can’t perform that action at this time.
0 commit comments