Skip to content

Commit

Permalink
ci: pnpm cache install pnpm/exe when node16 (#8929)
Browse files Browse the repository at this point in the history
ci: pnpm cache support node16
  • Loading branch information
jerrykingxyz authored Jan 3, 2025
1 parent 489e74b commit 0046867
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/pnpm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,21 @@ runs:
node-version: ${{ inputs.node-version }}

- name: Enable corepack
if: ${{ inputs.node-version != '16' }}
shell: bash
run: |
corepack enable
# https://pnpm.io/continuous-integration#github-actions
# Uses `packageManagement` field from package.json
- name: Install pnpm
uses: pnpm/action-setup@v4
if: ${{ inputs.node-version == '16' }}
with:
dest: ${{ runner.tool_cache }}/pnpm
# Use `@pnpm/exe` for Node 16
standalone: true

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
Expand Down

1 comment on commit 0046867

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on 0046867 Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2025-01-03 649c656) Current Change
10000_big_production-mode_disable-minimize + exec 37.6 s ± 265 ms 37.9 s ± 537 ms +0.96 %
10000_development-mode + exec 1.89 s ± 24 ms 1.79 s ± 20 ms -5.18 %
10000_development-mode_hmr + exec 677 ms ± 14 ms 669 ms ± 5.9 ms -1.14 %
10000_production-mode + exec 2.52 s ± 76 ms 2.43 s ± 24 ms -3.32 %
arco-pro_development-mode + exec 1.74 s ± 81 ms 1.74 s ± 92 ms +0.24 %
arco-pro_development-mode_hmr + exec 377 ms ± 1.5 ms 377 ms ± 1.6 ms -0.09 %
arco-pro_production-mode + exec 3.64 s ± 80 ms 3.51 s ± 102 ms -3.55 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.66 s ± 97 ms 3.57 s ± 87 ms -2.55 %
arco-pro_production-mode_traverse-chunk-modules + exec 3.65 s ± 70 ms 3.54 s ± 108 ms -3.14 %
threejs_development-mode_10x + exec 1.5 s ± 22 ms 1.47 s ± 43 ms -1.71 %
threejs_development-mode_10x_hmr + exec 780 ms ± 18 ms 762 ms ± 16 ms -2.38 %
threejs_production-mode_10x + exec 5.38 s ± 127 ms 5.33 s ± 100 ms -1.01 %
10000_big_production-mode_disable-minimize + rss memory 9517 MiB ± 179 MiB 9579 MiB ± 159 MiB +0.66 %
10000_development-mode + rss memory 650 MiB ± 10.7 MiB 718 MiB ± 31 MiB +10.53 %
10000_development-mode_hmr + rss memory 1371 MiB ± 227 MiB 1481 MiB ± 332 MiB +7.98 %
10000_production-mode + rss memory 625 MiB ± 18.8 MiB 718 MiB ± 24.8 MiB +14.78 %
arco-pro_development-mode + rss memory 589 MiB ± 30.1 MiB 641 MiB ± 38.4 MiB +8.88 %
arco-pro_development-mode_hmr + rss memory 635 MiB ± 85.2 MiB 672 MiB ± 70.2 MiB +5.81 %
arco-pro_production-mode + rss memory 749 MiB ± 48.7 MiB 732 MiB ± 59 MiB -2.21 %
arco-pro_production-mode_generate-package-json-webpack-plugin + rss memory 725 MiB ± 45.5 MiB 777 MiB ± 48.5 MiB +7.18 %
arco-pro_production-mode_traverse-chunk-modules + rss memory 734 MiB ± 41.6 MiB 757 MiB ± 62.2 MiB +3.07 %
threejs_development-mode_10x + rss memory 589 MiB ± 20.5 MiB 668 MiB ± 35.5 MiB +13.38 %
threejs_development-mode_10x_hmr + rss memory 1135 MiB ± 200 MiB 1239 MiB ± 311 MiB +9.19 %
threejs_production-mode_10x + rss memory 852 MiB ± 24.9 MiB 952 MiB ± 63.1 MiB +11.65 %

Please sign in to comment.