Skip to content

Commit e89dfd6

Browse files
committed
Fix test.yml
1 parent 3c87da7 commit e89dfd6

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,16 @@ jobs:
1515
- name: 📁 Checkout Repository
1616
uses: actions/checkout@v4
1717

18-
- name: 🟢 Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 20
22-
2318
- name: 📦 Setup pnpm
2419
uses: pnpm/action-setup@v3
2520
with:
2621
version: 9
2722

28-
- name: ⚡ Get pnpm store directory
29-
shell: bash
30-
run: |
31-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32-
33-
- name: 💾 Cache Dependencies
34-
uses: actions/cache@v4
23+
- name: 🟢 Setup Node.js with Native Caching
24+
uses: actions/setup-node@v4
3525
with:
36-
path: ${{ env.STORE_PATH }}
37-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38-
restore-keys: |
39-
${{ runner.os }}-pnpm-store-
26+
node-version: 20
27+
cache: 'pnpm' # Handles pnpm store resolution natively without custom variables
4028

4129
- name: 🛠️ Install Dependencies
4230
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)