Skip to content

Commit 8676185

Browse files
authored
fix: update outdated repo setup in codex.yml (openai#1171)
We should do some work to share the setup logic across `codex.yml`, `ci.yml`, and `rust-ci.yml`.
1 parent baa92f3 commit 8676185

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/codex.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,22 @@ jobs:
4747
with:
4848
node-version: 22
4949

50-
- name: Install dependencies (codex-cli)
51-
working-directory: codex-cli
52-
run: npm ci
50+
- name: Get pnpm store directory
51+
id: pnpm-cache
52+
shell: bash
53+
run: |
54+
echo "store_path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
55+
56+
- name: Setup pnpm cache
57+
uses: actions/cache@v4
58+
with:
59+
path: ${{ steps.pnpm-cache.outputs.store_path }}
60+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
61+
restore-keys: |
62+
${{ runner.os }}-pnpm-store-
63+
64+
- name: Install dependencies
65+
run: pnpm install
5366

5467
- uses: dtolnay/[email protected]
5568
with:

0 commit comments

Comments
 (0)