Skip to content

Commit

Permalink
feat(ci): add yarn cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Heymdall committed Dec 24, 2019
1 parent 0db468d commit 17ff911
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install and test
run: |
yarn --frozen-lockfile
Expand Down

0 comments on commit 17ff911

Please sign in to comment.