summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joseph Yi <dissonance@gmail.com> 2021-10-02 23:28:50 -0700
committerGravatar GitHub <noreply@github.com> 2021-10-02 23:28:50 -0700
commite4b0db9b12c13c861b554be91ad5bcf74f54191a (patch)
treee333caf31efa7a92b622ff4ff3b9faa4c2c1cdaf
parent5d3e3ae542d64caefa3ad849e2fef9e233b38e06 (diff)
downloadastro-e4b0db9b12c13c861b554be91ad5bcf74f54191a.tar.gz
astro-e4b0db9b12c13c861b554be91ad5bcf74f54191a.tar.zst
astro-e4b0db9b12c13c861b554be91ad5bcf74f54191a.zip
Use setup-node action's caching (#1476)
* Use setup-node action's caching * additional cleanup of caching boilerplate Co-authored-by: Joseph Yi <joseph.yi@shift.com>
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 3 insertions, 39 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 44776cdc2..621ba467f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -32,19 +32,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
-
- - name: Get yarn cache directory
- id: yarn-cache
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Set dependencies cache
- uses: actions/cache@v2
- with:
- path: ${{ steps.yarn-cache.outputs.dir }}
- key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
- ${{ runner.os }}-${{ matrix.node_version }}-
+ cache: 'yarn'
- name: Debug
run: yarn versions
@@ -70,19 +58,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 14
-
- - name: Get yarn cache directory
- id: yarn-cache
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Set dependencies cache
- uses: actions/cache@v2
- with:
- path: ${{ steps.yarn-cache.outputs.dir }}
- key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
- ${{ runner.os }}-${{ matrix.node_version }}-
+ cache: 'yarn'
- name: Debug
run: yarn versions
@@ -108,19 +84,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 14
-
- - name: Get yarn cache directory
- id: yarn-cache
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Set dependencies cache
- uses: actions/cache@v2
- with:
- path: ${{ steps.yarn-cache.outputs.dir }}
- key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
- ${{ runner.os }}-${{ matrix.node_version }}-
+ cache: 'yarn'
- name: Debug
run: yarn versions