Skip to content

Commit 3d11ad3

Browse files
committed
ci: remove @antfu/utils & corepack
1 parent 3e52d0b commit 3d11ad3

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Release
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
tags:
@@ -8,9 +11,6 @@ on:
811
jobs:
912
release:
1013
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:
@@ -35,8 +35,8 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737

38-
- name: Setup pnpm
39-
run: corepack enable
38+
- name: Install pnpm
39+
uses: pnpm/[email protected]
4040

4141
- name: Set node
4242
uses: actions/setup-node@v4

.github/workflows/unit-test.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,54 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install pnpm
17+
uses: pnpm/[email protected]
1418

1519
- name: Set node
1620
uses: actions/setup-node@v4
1721
with:
1822
node-version: lts/*
19-
20-
- name: Setup
21-
run: npm i -g @antfu/ni
23+
cache: pnpm
2224

2325
- name: Install
24-
run: nci
26+
run: pnpm i
2527

2628
- name: Lint
27-
run: nr lint
29+
run: pnpm lint
2830

2931
- name: Typecheck
30-
run: nr typecheck
32+
run: pnpm typecheck
3133

3234
test:
3335
runs-on: ${{ matrix.os }}
3436

3537
strategy:
3638
matrix:
3739
os: [ubuntu-latest, windows-latest]
38-
node: [18, 20]
40+
node: [18, 20, 22]
3941
fail-fast: false
4042

4143
steps:
42-
- uses: actions/checkout@v4
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
47+
- name: Install pnpm
48+
uses: pnpm/[email protected]
4349

4450
- name: Set node ${{ matrix.node }}
4551
uses: actions/setup-node@v4
4652
with:
4753
node-version: ${{ matrix.node }}
48-
49-
- name: Setup
50-
run: npm i -g @antfu/ni
54+
cache: pnpm
5155

5256
- name: Install
53-
run: nci
57+
run: pnpm i
5458

5559
- name: Build
56-
run: nr build
60+
run: pnpm run build
5761

5862
- name: Test
59-
run: nr test
63+
run: pnpm run test

0 commit comments

Comments
 (0)