mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 03:42:27 +03:00
Enabled Nx caching on main
- we should be able to trust Nx enough that we can sustain the build cache across commits, which will speed up the workflow because we don't need to rebuild our TS projects all the time
This commit is contained in:
parent
5791be4937
commit
7c346c28eb
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -20,10 +20,6 @@ env:
|
||||
~/.cache/ms-playwright/
|
||||
CACHED_BUILD_PATHS: |
|
||||
${{ github.workspace }}/ghost/*/build
|
||||
NX_CACHE_RESTORE_KEYS: |
|
||||
nx-Linux-${{ github.ref }}-${{ github.sha }}
|
||||
nx-Linux-${{ github.ref }}
|
||||
nx-Linux
|
||||
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||
|
||||
concurrency:
|
||||
@ -136,7 +132,10 @@ jobs:
|
||||
with:
|
||||
path: .nxcache
|
||||
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
|
||||
restore-keys: ${{ env.IS_MAIN == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
|
||||
restore-keys: |
|
||||
nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
|
||||
nx-Linux-${{ github.ref }}
|
||||
nx-Linux
|
||||
|
||||
- name: Check dependency cache
|
||||
uses: actions/cache@v4
|
||||
|
Loading…
Reference in New Issue
Block a user