Skip to content

Commit cd0909e

Browse files
authored
Update PNPM version and improve workflow steps
1 parent c9c5bb5 commit cd0909e

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/push.yml

Lines changed: 14 additions & 10 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: 'latest'
13-
12+
PNPM_VERSION: '8.x'
13+
1414
jobs:
1515
test-and-build:
1616
name: Test and Build
@@ -19,21 +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@v4
31-
with:
32-
version: ${{ env.PNPM_VERSION }}
33-
3436
- name: Install dependencies
35-
run: pnpm install
36-
37+
run: pnpm install --frozen-lockfile
38+
3739
- name: Build
3840
run: pnpm run build
3941

@@ -44,3 +46,5 @@ jobs:
4446
# run: pnpm run test:e2e
4547
# - name: Lint
4648
# run: pnpm run lint
49+
50+

0 commit comments

Comments
 (0)