mirror of
https://github.com/videojs/video.js.git
synced 2024-12-25 02:42:10 +02:00
chore: use setup-node cache and remove individual cache step (#7310)
This commit is contained in:
parent
a8a5e02cba
commit
fab6e87205
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -32,17 +32,6 @@ jobs:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
**/node_modules
|
||||
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
|
||||
restore-keys: |
|
||||
${{runner.os}}-npm-
|
||||
${{runner.os}}-
|
||||
|
||||
- name: read node version from .nvmrc
|
||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
shell: bash
|
||||
@ -58,9 +47,10 @@ jobs:
|
||||
run: pulseaudio -D
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '${{steps.nvm.outputs.NVMRC}}'
|
||||
cache: npm
|
||||
|
||||
# turn off the default setup-node problem watchers...
|
||||
- run: echo "::remove-matcher owner=eslint-compact::"
|
||||
|
Loading…
Reference in New Issue
Block a user