Skip to content

Commit 45508c4

Browse files
Ja1zmeclaude
andcommitted
fix(ci): añadir packages field en pnpm-workspace.yaml + simplificar workflow
Sin 'packages: [.]' en pnpm-workspace.yaml, pnpm store path fallaba silenciosamente en GitHub Actions, dejando el campo de caché vacío y rompiendo el CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7b19d03 commit 45508c4

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,12 @@ jobs:
1919
uses: pnpm/action-setup@v4
2020
with:
2121
version: 9
22-
run_install: false
2322

2423
- name: Setup Node.js
2524
uses: actions/setup-node@v4
2625
with:
2726
node-version: "20"
28-
29-
- name: Get pnpm store directory
30-
id: pnpm-cache
31-
run: echo "store=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
32-
33-
- name: Cache pnpm store
34-
uses: actions/cache@v4
35-
with:
36-
path: ${{ steps.pnpm-cache.outputs.store }}
37-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
38-
restore-keys: ${{ runner.os }}-pnpm-
27+
cache: "pnpm"
3928

4029
- name: Install dependencies
4130
run: pnpm install --frozen-lockfile

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
packages:
2+
- '.'
3+
14
ignoredBuiltDependencies:
25
- '@sentry/cli'
36
- electron

0 commit comments

Comments
 (0)