use actions/setup-node cache

This commit is contained in:
Nebel 2021-07-06 13:52:23 +09:00
parent 5a9dfe5ea5
commit 789013d881

View file

@ -8,13 +8,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "lts/*"
- id: yarn_cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn_cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
cache: yarn
- run: yarn
- run: yarn build
- name: The working tree is clean.