mirror of
https://github.com/chirimen-oh/node-web-i2c.git
synced 2025-01-19 00:18:03 +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
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
- id: yarn_cache
|
cache: yarn
|
||||||
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-
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
- name: The working tree is clean.
|
- name: The working tree is clean.
|
||||||
|
|
Loading…
Add table
Reference in a new issue