Use setup-node cache yarn dependencies (#11243)

This commit is contained in:
fisker Cheung authored and GitHub committed 2021-07-25 12:13:19 +08:00
1 parent 776b3ff13d
commit 8af696e435
5 files changed
+11

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ jobs:
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: "yarn"
- name: Install Dependencies - name: Install Dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
+1
View File
@@ -50,6 +50,7 @@ jobs:
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: "yarn"
- name: Install Dependencies - name: Install Dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
+2
View File
@@ -20,6 +20,8 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with:
cache: "yarn"
- name: Install Dependencies - name: Install Dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
+2
View File
@@ -17,6 +17,8 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with:
cache: "yarn"
- name: Install Dependencies - name: Install Dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
+5
View File
@@ -17,6 +17,8 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with:
cache: "yarn"
- name: Install Dependencies - name: Install Dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
@@ -61,6 +63,8 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with:
cache: "yarn"
- name: Install Dependencies - name: Install Dependencies
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
@@ -114,6 +118,7 @@ jobs:
uses: actions/setup-node@v2.2.0 uses: actions/setup-node@v2.2.0
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: "yarn"
- name: Config `ignore-engines=true` (Node.js 10) - name: Config `ignore-engines=true` (Node.js 10)
if: ${{ matrix.node == '10' }} if: ${{ matrix.node == '10' }}