Skip to content

Commit 595c39d

Browse files
committed
fix: run pnpm on github actions
1 parent bac18e9 commit 595c39d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/deploy-ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,30 @@ jobs:
9696
run: chmod -R 777 storage bootstrap/cache
9797

9898
# Run npm tests
99+
- uses: pnpm/action-setup@v2
100+
name: Install pnpm
101+
id: pnpm-install
102+
with:
103+
version: 7
104+
run_install: false
105+
106+
- name: Get pnpm store directory
107+
id: pnpm-cache
108+
shell: bash
109+
run: |
110+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
111+
112+
- uses: actions/cache@v3
113+
name: Setup pnpm cache
114+
with:
115+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
116+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
117+
restore-keys: |
118+
${{ runner.os }}-pnpm-store-
119+
99120
- name: Build and Test Node Packages
100121
run: |
101-
pnpm i
122+
pnpm install
102123
npm run build
103124
104125
# Run php tests

0 commit comments

Comments
 (0)