Skip to content

Commit 227d9de

Browse files
chore(attempt): optimize pnpm cache configuration (elizaOS#2556)
* chore: optimize pnpm cache configuration - Move pnpm setup before cache configuration - Add architecture-specific cache keys - Include package.json in cache key for better specificity - Add explicit store-dir configuration - Improve restore-keys with more specific fallbacks This change aims to improve package reuse during installation while maintaining existing functionality. Co-Authored-By: Sayo <hi@sayo.wtf> * chore: integrate setup-node pnpm caching - Add pnpm caching via actions/setup-node - Configure cache-dependency-path for pnpm-lock.yaml - Separate pnpm configuration step for better visibility - Add pnpm config list for debugging Co-Authored-By: Sayo <hi@sayo.wtf> * fix: update pnpm cache paths to match actual store locations Co-Authored-By: Sayo <hi@sayo.wtf> * fix: align pnpm store directory with cache paths Co-Authored-By: Sayo <hi@sayo.wtf> * fix: remove duplicate pnpm caching, use setup-node's built-in cache Co-Authored-By: Sayo <hi@sayo.wtf> * - Remove redundant pnpm caching steps - Reorder workflow steps for better cache utilization - Rely on setup-node's built-in pnpm caching Co-Authored-By: Sayo <hi@sayo.wtf> * fix: update pnpm store directory path to fix permission error Co-Authored-By: Sayo <hi@sayo.wtf> * revert pnpm caching --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Sayo <hi@sayo.wtf>
1 parent 6110782 commit 227d9de

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/integrationTests.yaml

+10-22
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,22 @@ jobs:
1919
with:
2020
version: 9.15.0
2121

22-
- name: Cache pnpm
23-
uses: actions/cache@v4
24-
with:
25-
path: |
26-
~/.pnpm-store
27-
**/node_modules
28-
key: ${{ runner.os }}-pnpm-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }}
29-
restore-keys: |
30-
${{ runner.os }}-pnpm-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }}-
31-
${{ runner.os }}-pnpm-${{ runner.arch }}-
32-
33-
- name: Cache plugin dist
34-
uses: actions/cache@v4
35-
with:
36-
path: |
37-
**/packages/plugin-*/dist
38-
key: ${{ runner.os }}-plugin-dist-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }}
39-
restore-keys: |
40-
${{ runner.os }}-plugin-dist-${{ runner.arch }}-
41-
4222
- uses: actions/setup-node@v4
4323
with:
4424
node-version: "23.3.0"
25+
cache: 'pnpm'
26+
cache-dependency-path: '**/pnpm-lock.yaml'
4527

46-
- name: Install dependencies
28+
- name: Configure pnpm
4729
run: |
4830
pnpm config set store-dir ~/.pnpm-store
49-
pnpm install -r --no-frozen-lockfile
31+
pnpm config set prefer-offline true
32+
pnpm config set node-linker hoisted
33+
pnpm config set shamefully-hoist true
34+
pnpm config list
35+
36+
- name: Install dependencies
37+
run: pnpm install -r --no-frozen-lockfile --prefer-offline
5038

5139
- name: Build packages
5240
run: pnpm build

0 commit comments

Comments
 (0)