@@ -15,34 +15,35 @@ jobs:
1515
1616 steps :
1717 - uses : actions/checkout@v5
18+ - run : corepack enable
1819 - name : Use Node.js ${{ matrix.node-version }}
1920 uses : actions/setup-node@v5
2021 with :
2122 node-version : ${{ matrix.node-version }}
22- cache : ' npm '
23- cache-dependency-path : ' package -lock.json '
24- - run : npm ci
25- - run : npm run lint
23+ cache : ' pnpm '
24+ cache-dependency-path : ' pnpm -lock.yaml '
25+ - run : pnpm install --frozen-lockfile
26+ - run : pnpm lint
2627
2728 - name : Build with Netlify badge
28- run : npm run build-serial
29+ run : pnpm build-serial
2930 env :
3031 VITE_SHOW_NETLIFY_BADGE : true
3132 NODE_OPTIONS : --max_old_space_size=4096
3233
3334 - name : Build
34- run : npm run build-serial
35+ run : pnpm build-serial
3536 env :
3637 NODE_OPTIONS : --max_old_space_size=4096
3738
3839 # Docusaurus doesn't support Node 14. These tasks can be removed once Node 14 is EOL (May 2023)
3940 - name : Build with Netlify badge (no docs)
40- run : npx nx run-many --target=build --exclude=@rjsf/docs --parallel=false
41+ run : pnpm nx run-many --target=build --exclude=@rjsf/docs --parallel=false
4142 env :
4243 VITE_SHOW_NETLIFY_BADGE : true
4344 NODE_OPTIONS : --max_old_space_size=4096
4445 - name : Build (no docs)
45- run : npx nx run-many --target=build --exclude=@rjsf/docs --parallel=false
46+ run : pnpm nx run-many --target=build --exclude=@rjsf/docs --parallel=false
4647 env :
4748 NODE_OPTIONS : --max_old_space_size=4096
4849
5657 with :
5758 name : docs
5859 path : packages/docs/build
59- - run : npm test
60+ - run : pnpm test
6061 deploy_playground_and_docs :
6162 runs-on : ubuntu-latest
6263 if : github.ref == 'refs/heads/main'
0 commit comments