Skip to content

Commit 19392e6

Browse files
authored
Enable caching on pre-merge jobs (facebook#4382)
1 parent 839225f commit 19392e6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/pre-merge.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Set up Node.js
13-
uses: actions/setup-node@v4
14-
1512
- name: Checkout repository
1613
uses: actions/checkout@v4
1714

15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
cache: "yarn"
19+
1820
- name: Install dependencies
1921
run: yarn install --frozen-lockfile --no-progress --non-interactive
2022

@@ -25,12 +27,14 @@ jobs:
2527
build:
2628
runs-on: ubuntu-latest
2729
steps:
28-
- name: Set up Node.js
29-
uses: actions/setup-node@v4
30-
3130
- name: Checkout repository
3231
uses: actions/checkout@v4
3332

33+
- name: Set up Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
cache: "yarn"
37+
3438
- name: Install dependencies
3539
run: yarn install --frozen-lockfile --no-progress --non-interactive
3640

0 commit comments

Comments
 (0)