Skip to content

Commit 1c5b003

Browse files
authored
Merge pull request #451 from Code-Hex/switch/pnpm
Switch pnpm
2 parents 0bdc2b2 + 5265ff0 commit 1c5b003

File tree

4 files changed

+5754
-6353
lines changed

4 files changed

+5754
-6353
lines changed

.github/workflows/ci.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,33 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8
1215
- name: Setup Node
1316
uses: actions/setup-node@v3
1417
with:
1518
node-version: current
16-
cache: 'yarn'
17-
- run: yarn install --frozen-lockfile
18-
- run: yarn test
19+
cache: 'pnpm'
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm test
1922
env:
2023
CI: true
2124
eslint:
2225
runs-on: ubuntu-latest
2326
steps:
2427
- uses: actions/checkout@v3
28+
- uses: pnpm/action-setup@v2
29+
with:
30+
version: 8
2531
- name: Setup Node
2632
uses: actions/setup-node@v3
2733
with:
2834
node-version: current
29-
cache: 'yarn'
30-
- run: yarn install --frozen-lockfile
31-
- run: yarn lint-fix
32-
- run: yarn prettier
35+
cache: 'pnpm'
36+
- run: pnpm install --frozen-lockfile
37+
- run: pnpm lint-fix
38+
- run: pnpm prettier
3339
- name: Auto commit fixed code
3440
id: auto-commit-action
3541
uses: stefanzweifel/git-auto-commit-action@v4

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"README.md"
1616
],
1717
"scripts": {
18+
"preinstall": "npx only-allow pnpm",
1819
"type-check": "tsc --noEmit",
1920
"type-check:yup": "tsc --strict --noEmit example/yup/schemas.ts",
2021
"type-check:zod": "tsc --strict --noEmit example/zod/schemas.ts",

0 commit comments

Comments
 (0)