Skip to content

Commit baae977

Browse files
authored
Merge pull request #6 from Async-AC-Team/OsamaRab3-patch-1
Update PNPM version and action setup in workflow
2 parents 7e7243b + 8992bd2 commit baae977

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/push.yml

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

1010
env:
1111
NODE_VERSION: '20.x'
12-
PNPM_VERSION: '10.x'
12+
PNPM_VERSION: '8.x' # Using a more stable version of pnpm
1313

1414
jobs:
1515
test-and-build:
@@ -19,20 +19,23 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22-
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v2
25+
id: pnpm-install
26+
with:
27+
version: ${{ env.PNPM_VERSION }}
28+
run_install: false
29+
2330
- name: Setup Node.js
2431
uses: actions/setup-node@v4
2532
with:
2633
node-version: ${{ env.NODE_VERSION }}
2734
cache: 'pnpm'
2835

29-
- name: Setup pnpm
30-
uses: pnpm/action-setup@v2
31-
with:
32-
version: ${{ env.PNPM_VERSION }}
33-
3436
- name: Install dependencies
35-
run: pnpm install
37+
run: pnpm install --no-frozen-lockfile
38+
3639
- name: Build
3740
run: pnpm run build
3841

0 commit comments

Comments
 (0)