Skip to content

Commit 19007e7

Browse files
committed
ci(ui-merge): spell out UI Published Artifacts' install so the pre-install graph sees it
check-pre-install-import-graph finds a job's install by its `pnpm install` line and reads every step of a job without one as running before node_modules exists; both gates import typescript. The ui jobs spell their setup out for the same reason. Claude-Session: https://claude.ai/code/session_01ADHkmNiJfZmoXAbfcJSAfx Co-authored-by: Claude <noreply@anthropic.com>
1 parent f066593 commit 19007e7

1 file changed

Lines changed: 29 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4397,12 +4397,36 @@ jobs:
43974397
- name: Checkout repository
43984398
uses: actions/checkout@v7
43994399

4400-
# Restore-only: the per-push jobs above own saving the store and the
4401-
# turbo seeds.
4402-
- name: Setup workspace
4403-
uses: ./.github/actions/setup-workspace
4400+
# The setup is spelled out, as in the ui jobs above, rather than the
4401+
# `setup-workspace` composite: `ui/scripts/check-pre-install-import-graph.mjs`
4402+
# finds a job's install by its `pnpm install` line, and reads every step
4403+
# of a job with none as running before `node_modules` exists, which the
4404+
# two gates below (they import `typescript`) cannot.
4405+
- name: Setup Node.js
4406+
uses: actions/setup-node@v7
44044407
with:
4405-
save-store: 'false'
4408+
node-version-file: .nvmrc
4409+
4410+
- name: Setup pnpm
4411+
uses: ./.github/actions/setup-pnpm
4412+
4413+
- name: Get pnpm store directory
4414+
shell: bash
4415+
run: |
4416+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
4417+
4418+
# Restore-only, here and below: the per-push jobs above own saving the
4419+
# store and the turbo seeds.
4420+
- name: Restore pnpm cache
4421+
uses: actions/cache/restore@v6
4422+
with:
4423+
path: ${{ env.STORE_PATH }}
4424+
key: ${{ runner.os }}-pnpm-store-v3-${{ hashFiles('**/pnpm-lock.yaml') }}
4425+
restore-keys: |
4426+
${{ runner.os }}-pnpm-store-v3-
4427+
4428+
- name: Install dependencies
4429+
run: pnpm install --frozen-lockfile
44064430

44074431
- name: Restore Turbo cache
44084432
uses: actions/cache/restore@v6

0 commit comments

Comments
 (0)