mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 09:48:39 +00:00
chore: Use proper pnpm caching in one CI step.
This commit is contained in:
24
.github/workflows/install-smoke.yml
vendored
24
.github/workflows/install-smoke.yml
vendored
@@ -33,19 +33,17 @@ jobs:
|
|||||||
- name: Checkout CLI
|
- name: Checkout CLI
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup pnpm (corepack retry)
|
- name: Setup Node.js
|
||||||
run: |
|
uses: actions/setup-node@v4
|
||||||
set -euo pipefail
|
with:
|
||||||
corepack enable
|
node-version: 22.x
|
||||||
for attempt in 1 2 3; do
|
check-latest: true
|
||||||
if corepack prepare pnpm@10.23.0 --activate; then
|
|
||||||
pnpm -v
|
- name: Setup pnpm + cache store
|
||||||
exit 0
|
uses: ./.github/actions/setup-pnpm-store-cache
|
||||||
fi
|
with:
|
||||||
echo "corepack prepare failed (attempt $attempt/3). Retrying..."
|
pnpm-version: "10.23.0"
|
||||||
sleep $((attempt * 10))
|
cache-key-suffix: "node22"
|
||||||
done
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Install pnpm deps (minimal)
|
- name: Install pnpm deps (minimal)
|
||||||
run: pnpm install --ignore-scripts --frozen-lockfile
|
run: pnpm install --ignore-scripts --frozen-lockfile
|
||||||
|
|||||||
Reference in New Issue
Block a user