Skip to content

Commit 4f38f4c

Browse files
author
孙博浩
committed
chore: replace npm with pnpm & update husky to fix ci
1 parent 85b7535 commit 4f38f4c

File tree

6 files changed

+11248
-38783
lines changed

6 files changed

+11248
-38783
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ jobs:
2626
react: 17
2727
steps:
2828
- uses: actions/checkout@v2
29+
- uses: pnpm/action-setup@v2.0.1
30+
with:
31+
version: 8.10.5
2932
- name: Use Node.js LTS
3033
uses: actions/setup-node@v2
3134
with:
3235
node-version: 'lts/*'
33-
- run: npm ci
34-
- run: npm run build --if-present
35-
- run: npm test -- --coverage
36+
- run: pnpm i
37+
- run: pnpm run build --if-present
38+
- run: pnpm run test -- --coverage
3639
env:
3740
RSUITE_VERSION: ${{ matrix.rsuite }}
3841
REACT_VERSION: ${{ matrix.react }}

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-node@v2
18-
- run: npm ci
18+
- uses: pnpm/action-setup@v2.0.1
19+
with:
20+
version: 8.10.5
21+
- run: pnpm i
1922
- name: Semantic Release
20-
run: npx semantic-release
23+
run: pnpm semantic-release

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
pnpm lint-staged

0 commit comments

Comments
 (0)