ci: use local node toolcache setup · openclaw/openclaw@4c6aeb9
steipete
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -36,10 +36,13 @@ runs:
|
36 | 36 | fi |
37 | 37 | |
38 | 38 | - name: Setup Node.js |
39 | | -uses: actions/setup-node@v6 |
40 | | -with: |
41 | | -node-version: ${{ inputs.node-version }} |
42 | | -check-latest: false |
| 39 | +shell: bash |
| 40 | +env: |
| 41 | +REQUESTED_NODE_VERSION: ${{ inputs.node-version }} |
| 42 | +run: | |
| 43 | + set -euo pipefail |
| 44 | + source "$GITHUB_ACTION_PATH/../setup-pnpm-store-cache/ensure-node.sh" |
| 45 | + openclaw_ensure_node "$REQUESTED_NODE_VERSION" |
43 | 46 | |
44 | 47 | - name: Setup pnpm |
45 | 48 | uses: ./.github/actions/setup-pnpm-store-cache |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ inputs:
|
14 | 14 | required: false |
15 | 15 | default: "" |
16 | 16 | use-actions-cache: |
17 | | -description: Whether pnpm/action-setup should cache the pnpm store. |
| 17 | +description: Whether actions/cache should cache the pnpm store. |
18 | 18 | required: false |
19 | 19 | default: "true" |
20 | 20 | outputs: |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -387,10 +387,12 @@ jobs:
|
387 | 387 | pre-commit run --config "${PRE_COMMIT_CONFIG_PATH:-.pre-commit-config.yaml}" zizmor --files "${workflow_files[@]}" |
388 | 388 | |
389 | 389 | - name: Setup Node.js |
390 | | -uses: actions/setup-node@v6 |
391 | | -with: |
392 | | -node-version: "24.x" |
393 | | -check-latest: false |
| 390 | +env: |
| 391 | +REQUESTED_NODE_VERSION: "24.x" |
| 392 | +run: | |
| 393 | + set -euo pipefail |
| 394 | + source .github/actions/setup-pnpm-store-cache/ensure-node.sh |
| 395 | + openclaw_ensure_node "$REQUESTED_NODE_VERSION" |
394 | 396 | |
395 | 397 | - name: Audit production dependencies |
396 | 398 | run: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high |
@@ -1504,10 +1506,12 @@ jobs:
|
1504 | 1506 | } |
1505 | 1507 | |
1506 | 1508 | - name: Setup Node.js |
1507 | | -uses: actions/setup-node@v6 |
1508 | | -with: |
1509 | | -node-version: 24.x |
1510 | | -check-latest: false |
| 1509 | +env: |
| 1510 | +REQUESTED_NODE_VERSION: "24.x" |
| 1511 | +run: | |
| 1512 | + set -euo pipefail |
| 1513 | + source .github/actions/setup-pnpm-store-cache/ensure-node.sh |
| 1514 | + openclaw_ensure_node "$REQUESTED_NODE_VERSION" |
1511 | 1515 | |
1512 | 1516 | - name: Setup pnpm |
1513 | 1517 | uses: ./.github/actions/setup-pnpm-store-cache |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。