Skip to content

Commit 73333bf

Browse files
author
yamelsenih
committed
deploy
1 parent 95d4690 commit 73333bf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ jobs:
3636
uses: actions/setup-node@v4
3737
with:
3838
node-version: 20 # Recommended to use a recent LTS version
39-
cache: 'pnpm' # Caches dependencies using pnpm lockfile
40-
41-
# 3. FIX: Install pnpm globally
42-
# This step ensures the 'pnpm' executable is available in the runner's PATH.
43-
- name: Install pnpm globally
44-
run: npm install -g pnpm
39+
# We no longer need to specify 'cache: pnpm' here,
40+
# as the dedicated pnpm action handles setup and caching.
41+
42+
# 3. FIX: Setup pnpm using the dedicated action
43+
# This guarantees pnpm is installed and available in the PATH.
44+
- name: Setup pnpm
45+
uses: pnpm/action-setup@v3
46+
with:
47+
version: 8 # Specify a stable version of pnpm (or leave it out for latest)
48+
run_install: false # We will run the installation separately (step 4)
4549

4650
# 4. Install dependencies
4751
- name: Install dependencies (pnpm)

0 commit comments

Comments
 (0)