mirror of https://github.com/coder/code-server.git
Enable cache on vendor assets.
This commit is contained in:
parent
f2e65daca3
commit
c861a1d796
|
@ -112,14 +112,16 @@ jobs:
|
||||||
id: cache-yarn
|
id: cache-yarn
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: "**/node_modules"
|
path: |
|
||||||
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
|
"**/node_modules"
|
||||||
|
"**/vendor/modules"
|
||||||
|
"**/vendor/modules/code-oss-dev/node_modules"
|
||||||
|
key: yarn-build-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/vendor/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
yarn-build-
|
yarn-build-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# TODO@Teffen investigate why this never matches the cache.
|
if: steps.cache-yarn.outputs.cache-hit != 'true'
|
||||||
# if: steps.cache-yarn.outputs.cache-hit != 'true'
|
|
||||||
run: yarn --frozen-lockfile
|
run: yarn --frozen-lockfile
|
||||||
|
|
||||||
- name: Build code-server
|
- name: Build code-server
|
||||||
|
|
Loading…
Reference in New Issue