Skip to content

Commit 80c3647

Browse files
committed
ci: make sure that pnpm is installed
1 parent cf71597 commit 80c3647

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

.github/workflows/build-and-deploy.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515
- name: Checkout 🛎️
1616
uses: actions/checkout@v4
1717

18-
- name: Install and Build 🔧
19-
run: |
20-
pnpm install --frozen-lockfile
21-
pnpm build
18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
run_install: true
22+
23+
- name: Build 🔧
24+
run: pnpm build
2225

2326
- name: Deploy 🚀
2427
uses: JamesIves/github-pages-deploy-action@v4
@@ -32,8 +35,10 @@ jobs:
3235
- name: Checkout
3336
uses: actions/checkout@v4
3437

35-
- name: Install
36-
run: pnpm install --frozen-lockfile
38+
- uses: pnpm/action-setup@v4
39+
name: Install pnpm
40+
with:
41+
run_install: true
3742

3843
- name: test
3944
run: pnpm test -- --watch=false --browsers=ChromeHeadless

.github/workflows/verify-build.yml

+24-12
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
with:
1515
ref: ${{ github.event.pull_request.head.sha }}
1616

17-
- name: install
18-
run: pnpm install --frozen-lockfile
17+
- uses: pnpm/action-setup@v4
18+
name: Install pnpm
19+
with:
20+
run_install: true
1921

2022
- name: build
2123
run: pnpm build
@@ -28,8 +30,10 @@ jobs:
2830
with:
2931
ref: ${{ github.event.pull_request.head.sha }}
3032

31-
- name: install
32-
run: pnpm install --frozen-lockfile
33+
- uses: pnpm/action-setup@v4
34+
name: Install pnpm
35+
with:
36+
run_install: true
3337

3438
- name: lint
3539
run: pnpm lint
@@ -42,8 +46,10 @@ jobs:
4246
with:
4347
ref: ${{ github.event.pull_request.head.sha }}
4448

45-
- name: install
46-
run: pnpm install --frozen-lockfile
49+
- uses: pnpm/action-setup@v4
50+
name: Install pnpm
51+
with:
52+
run_install: true
4753

4854
- name: test
4955
run: pnpm test -- --watch=false --browsers=ChromeHeadless
@@ -61,8 +67,10 @@ jobs:
6167
with:
6268
ref: ${{ github.event.pull_request.head.sha }}
6369

64-
- name: install
65-
run: pnpm install --frozen-lockfile
70+
- uses: pnpm/action-setup@v4
71+
name: Install pnpm
72+
with:
73+
run_install: true
6674

6775
- name: test
6876
run: pnpm test -- --watch=false --browsers=FirefoxHeadless
@@ -75,8 +83,10 @@ jobs:
7583
with:
7684
ref: ${{ github.event.pull_request.head.sha }}
7785

78-
- name: install
79-
run: pnpm install --frozen-lockfile
86+
- uses: pnpm/action-setup@v4
87+
name: Install pnpm
88+
with:
89+
run_install: true
8090

8191
- name: test
8292
run: pnpm test -- --watch=false --browsers=SafariNative
@@ -89,8 +99,10 @@ jobs:
8999
with:
90100
ref: ${{ github.event.pull_request.head.sha }}
91101

92-
- name: install
93-
run: pnpm install --frozen-lockfile
102+
- uses: pnpm/action-setup@v4
103+
name: Install pnpm
104+
with:
105+
run_install: true
94106

95107
- name: prettier
96108
run: npx prettier . --check

0 commit comments

Comments
 (0)