Skip to content

Commit e2064a6

Browse files
committed
ci: remove @antfu/ni
1 parent 2bffcf3 commit e2064a6

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323

2424
- run: npx changelogithub
2525
env:
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/unit-test.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4.1.0
17+
1418
- name: Set node
1519
uses: actions/setup-node@v4
1620
with:
1721
node-version: lts/*
18-
19-
- name: Setup
20-
run: npm i -g @antfu/ni
22+
cache: pnpm
2123

2224
- name: Install
23-
run: nci
25+
run: pnpm i
2426

2527
- name: Lint
26-
run: nr lint
28+
run: pnpm run lint
29+
30+
- name: Typecheck
31+
run: pnpm run typecheck
2732

2833
test:
2934
runs-on: ${{ matrix.os }}
@@ -36,19 +41,21 @@ jobs:
3641

3742
steps:
3843
- uses: actions/checkout@v4
44+
45+
- name: Install pnpm
46+
uses: pnpm/action-setup@v4.1.0
47+
3948
- name: Set node ${{ matrix.node }}
4049
uses: actions/setup-node@v4
4150
with:
4251
node-version: ${{ matrix.node }}
52+
cache: pnpm
4353

44-
- name: Setup
45-
run: npm i -g @antfu/ni
46-
47-
- name: Install
48-
run: nci
54+
- name: Install dependencies
55+
run: pnpm i
4956

5057
- name: Build
51-
run: nr build
58+
run: pnpm run build
5259

5360
- name: Test
54-
run: nr test
61+
run: pnpm run test

0 commit comments

Comments
 (0)