mirror of
https://github.com/chirimen-oh/node-web-i2c.git
synced 2025-01-18 08:05:10 +00:00
use actions/setup-node cache
This commit is contained in:
parent
5a9dfe5ea5
commit
789013d881
1 changed files with 1 additions and 7 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue