Skip to content

Commit 02596aa

Browse files
committed
fix: avoid error for missing pnpm in setup-node
1 parent f1d1742 commit 02596aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- uses: actions/setup-node@v5
3737
with:
3838
node-version: ${{ matrix.node }}
39+
package-manager-cache: false # pnpm is not installed yet
3940
- name: install pnpm
4041
shell: bash
4142
run: |
@@ -45,8 +46,7 @@ jobs:
4546
- uses: actions/setup-node@v5
4647
with:
4748
node-version: ${{ matrix.node }}
48-
cache: 'pnpm'
49-
cache-dependency-path: '**/pnpm-lock.yaml'
49+
package-manager-cache: true # caches pnpm via packageManager field in package.json
5050
- name: install
5151
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
5252
- name: sync

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- uses: actions/setup-node@v5
3131
with:
3232
node-version: ${{ matrix.node }}
33+
package-manager-cache: false # pnpm is not installed yet
3334
- name: install pnpm
3435
shell: bash
3536
run: |
@@ -39,8 +40,7 @@ jobs:
3940
- uses: actions/setup-node@v5
4041
with:
4142
node-version: ${{ matrix.node }}
42-
cache: 'pnpm'
43-
cache-dependency-path: '**/pnpm-lock.yaml'
43+
package-manager-cache: true # caches pnpm via packageManager field in package.json
4444
- name: install
4545
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
4646
- name: generated types are up to date

0 commit comments

Comments
 (0)