Skip to content

Commit ff9a3ab

Browse files
authored
Merge pull request #613 from formio/johnformio-patch-1
Update sync-pr-to-monorepo.yml
2 parents 2a16de2 + a5b3297 commit ff9a3ab

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/sync-pr-to-monorepo.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
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

0 commit comments

Comments
 (0)