Skip to content

Commit 55d804c

Browse files
authored
Improve workflow configuration for PNPM
Updated PNPM version comment for clarity and modified installation step to check for lockfile.
1 parent cd0909e commit 55d804c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99

1010
env:
1111
NODE_VERSION: '20.x'
12-
PNPM_VERSION: '8.x'
13-
12+
PNPM_VERSION: '8.x' # Using a more stable version of pnpm
13+
1414
jobs:
1515
test-and-build:
1616
name: Test and Build
@@ -34,7 +34,12 @@ jobs:
3434
cache: 'pnpm'
3535

3636
- name: Install dependencies
37-
run: pnpm install --frozen-lockfile
37+
run: |
38+
if [ -f pnpm-lock.yaml ]; then
39+
pnpm install --frozen-lockfile
40+
else
41+
pnpm install
42+
fi
3843
3944
- name: Build
4045
run: pnpm run build

0 commit comments

Comments
 (0)