Archived
1
0

Enable cache on vendor assets.

This commit is contained in:
Teffen Ellis 2021-09-15 12:20:43 -04:00 committed by Teffen Ellis
parent f2e65daca3
commit c861a1d796

View File

@ -112,14 +112,16 @@ jobs:
id: cache-yarn
uses: actions/cache@v2
with:
path: "**/node_modules"
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
path: |
"**/node_modules"
"**/vendor/modules"
"**/vendor/modules/code-oss-dev/node_modules"
key: yarn-build-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/vendor/yarn.lock') }}
restore-keys: |
yarn-build-
- 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
- name: Build code-server