Skip to content

Commit 8e7a83c

Browse files
committed
ci: manually create pnpm cache if it doesn't exist
1 parent a7e2d19 commit 8e7a83c

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
node-version-file: ".nvmrc"
2828
cache: "pnpm"
2929

30+
# see https://github.com/actions/setup-node/issues/1137
31+
- name: 📂 Create pnpm cache directory
32+
shell: bash
33+
run: mkdir -vp $(pnpm store path --silent)
34+
3035
- name: 📦 Install Dependencies
3136
run: npm run bootstrap
3237

.github/workflows/publish-preview.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
node-version-file: ".nvmrc"
2121
cache: "pnpm"
2222

23+
# see https://github.com/actions/setup-node/issues/1137
24+
- name: 📂 Create pnpm cache directory
25+
shell: bash
26+
run: mkdir -vp $(pnpm store path --silent)
27+
2328
- name: 📦 Install Dependencies
2429
run: npm run bootstrap
2530

.github/workflows/review.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
node-version-file: ".nvmrc"
2828
cache: "pnpm"
2929

30+
# see https://github.com/actions/setup-node/issues/1137
31+
- name: 📂 Create pnpm cache directory
32+
shell: bash
33+
run: mkdir -vp $(pnpm store path --silent)
34+
3035
- name: 🧑‍⚕️ React Doctor
3136
uses: millionco/react-doctor@main
3237
with:

0 commit comments

Comments
 (0)