@@ -16,12 +16,14 @@ jobs:
1616 - uses : actions/checkout@v6
1717 - uses : actions/setup-node@v6
1818 with :
19- node-version : 22
20- cache : " npm"
19+ node-version-file : " .nvmrc"
20+ - uses : pnpm/action-setup@v4
21+ with :
22+ cache : " true"
2123 - name : Install dependencies
22- run : npm ci
24+ run : pnpm install --frozen-lockfile
2325 - name : Run ESLint
24- run : npm run lint -- --max-warnings=0
26+ run : pnpm run lint:check -- --max-warnings=0
2527
2628 typecheck :
2729 name : TypeScript Check
@@ -30,12 +32,14 @@ jobs:
3032 - uses : actions/checkout@v6
3133 - uses : actions/setup-node@v6
3234 with :
33- node-version : 22
34- cache : " npm"
35+ node-version-file : " .nvmrc"
36+ - uses : pnpm/action-setup@v4
37+ with :
38+ cache : " true"
3539 - name : Install dependencies
36- run : npm ci
40+ run : pnpm install --frozen-lockfile
3741 - name : Run typecheck
38- run : npm run typecheck
42+ run : pnpm run typecheck
3943
4044 format-check :
4145 name : Format with Prettier
@@ -44,12 +48,14 @@ jobs:
4448 - uses : actions/checkout@v6
4549 - uses : actions/setup-node@v6
4650 with :
47- node-version : 22
48- cache : " npm"
51+ node-version-file : " .nvmrc"
52+ - uses : pnpm/action-setup@v4
53+ with :
54+ cache : " true"
4955 - name : Install dependencies
50- run : npm ci
56+ run : pnpm install --frozen-lockfile
5157 - name : Run Prettier check
52- run : npm run format:check
58+ run : pnpm run format:check
5359
5460 build-and-link-check :
5561 name : Build & Link Check
5864 - uses : actions/checkout@v6
5965 - uses : actions/setup-node@v6
6066 with :
61- node-version : 22
62- cache : " npm"
67+ node-version-file : " .nvmrc"
68+ - uses : pnpm/action-setup@v4
69+ with :
70+ cache : " true"
6371 - name : Install dependencies
64- run : npm ci
72+ run : pnpm install --frozen-lockfile
6573 - name : Build Docusaurus site
66- run : npm run build
74+ run : pnpm run build
0 commit comments