Skip to content

Commit 4b42e3d

Browse files
authored
ci: use common JS setup action (#4)
1 parent 7f71f5d commit 4b42e3d

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,10 @@ jobs:
2222
- name: Checkout source
2323
uses: actions/checkout@v3
2424

25-
- name: Install pnpm
26-
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
27-
with:
28-
run_install: true
29-
30-
- name: Install Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
25+
- name: Install Node.js and dependencies
26+
uses: mcous/js/actions/setup@main
3227
with:
3328
node-version: ${{ matrix.node-version }}
34-
cache: pnpm
35-
36-
- name: Install dependencies
37-
run: pnpm install
3829

3930
- name: Run tests
4031
run: pnpm coverage
@@ -63,19 +54,8 @@ jobs:
6354
- name: Checkout source
6455
uses: actions/checkout@v3
6556

66-
- name: Install pnpm
67-
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
68-
with:
69-
run_install: true
70-
71-
- name: Install Node.js
72-
uses: actions/setup-node@v3
73-
with:
74-
node-version: '18'
75-
cache: pnpm
76-
77-
- name: Install dependencies
78-
run: pnpm install
57+
- name: Install Node.js and dependencies
58+
uses: mcous/js/actions/setup@main
7959

8060
- name: Build and check
8161
run: pnpm build-and-check

0 commit comments

Comments
 (0)