chore(ci): Setup yarn cache (#3015)

This commit is contained in:
OJ Kwon 2021-12-11 23:16:20 -08:00 committed by GitHub
parent da4111a022
commit 69123ddc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -192,6 +192,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: "16" node-version: "16"
cache: "yarn"
# We explicitly do this to cache properly. # We explicitly do this to cache properly.
- name: Install Rust - name: Install Rust
@ -199,10 +200,6 @@ jobs:
with: with:
profile: minimal profile: minimal
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: denoland/setup-deno@v1 - uses: denoland/setup-deno@v1
if: matrix.crate == 'swc_bundler' if: matrix.crate == 'swc_bundler'
with: with:

View File

@ -21,6 +21,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: 14 node-version: 14
cache: "yarn"
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -54,6 +55,7 @@ jobs:
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: 14 node-version: 14
cache: "yarn"
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2