[CI] ci-server reorder twenty-shared build after cache restoration (#9672)

# Introduction
Unless I'm mistaken we can win few seconds `~12s` by reordering the
`twenty-shared` build step after the cache restoration in order for `nx`
to hit it if possible.

[Related
run](https://github.com/twentyhq/twenty/actions/runs/12809421832/job/35714544486)
This commit is contained in:
Paul Rastoin
2025-01-17 08:06:30 +01:00
committed by GitHub
parent 7acb68929f
commit 22ee77145a

View File

@ -55,13 +55,13 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install dependencies - name: Install dependencies
uses: ./.github/workflows/actions/yarn-install uses: ./.github/workflows/actions/yarn-install
- name: Build twenty-shared
run: npx nx build twenty-shared
- name: Restore server setup - name: Restore server setup
id: restore-server-setup-cache id: restore-server-setup-cache
uses: ./.github/workflows/actions/restore-cache uses: ./.github/workflows/actions/restore-cache
with: with:
key: ${{ env.SERVER_SETUP_CACHE_KEY }} key: ${{ env.SERVER_SETUP_CACHE_KEY }}
- name: Build twenty-shared
run: npx nx build twenty-shared
- name: Server / Run lint & typecheck - name: Server / Run lint & typecheck
uses: ./.github/workflows/actions/nx-affected uses: ./.github/workflows/actions/nx-affected
with: with: