Skip to content

Commit 649629e

Browse files
committed
chore: switch to pnpm and bump dependency minor versions
1 parent 744099d commit 649629e

File tree

5 files changed

+1742
-4251
lines changed

5 files changed

+1742
-4251
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# From: https://github.com/wechat-miniprogram/api-typings/blob/9c691dd47158d9a029a68105c2378a3668874cf4/.github/workflows/test.yml
2-
# Author: Mr.Hope <[email protected]>
1+
# From: https://github.com/wechat-miniprogram/api-typings/blob/8a4dc47a5226dd1a6f2632aa542b7b926afd3c93/.github/workflows/test.yml
2+
# Follow the link above to checkout original authors.
3+
34
name: Test
45

56
on:
@@ -12,19 +13,21 @@ jobs:
1213
steps:
1314
- name: Checkout
1415
uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
name: Install pnpm
1519
with:
16-
persist-credentials: false
20+
version: latest
21+
run_install: false
1722

18-
- name: restore node modules
19-
uses: actions/cache@v4
20-
id: node-modules-cache
23+
- name: Install Node.js
24+
uses: actions/setup-node@v4
2125
with:
22-
path: node_modules
23-
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
26+
node-version: lts/*
27+
cache: 'pnpm'
2428

25-
- name: Install Deps
26-
if: steps.node-modules-cache.outputs.cache-hit != 'true'
27-
run: npm ci
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
2831

2932
- name: Run test
3033
run: npm run test

0 commit comments

Comments
 (0)