Skip to content

Commit e4d1e9d

Browse files
committed
ci: configure pnpm store path for actions cache in CI workflow
1 parent 3a36d87 commit e4d1e9d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci-and-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ jobs:
6161
pnpm --version
6262
echo "::endgroup::"
6363
64+
- name: Configure pnpm store for actions cache
65+
shell: bash
66+
run: |
67+
echo "::group::Configure pnpm store path (~/.pnpm-store)"
68+
PNPM_STORE_DIR="$HOME/.pnpm-store"
69+
mkdir -p "$PNPM_STORE_DIR"
70+
pnpm config set store-dir "$PNPM_STORE_DIR"
71+
echo "pnpm store-dir => $(pnpm config get store-dir)"
72+
echo "::endgroup::"
73+
6474
- name: Set up Node.js
6575
uses: actions/setup-node@v4
6676
with:

0 commit comments

Comments
 (0)