File tree Expand file tree Collapse file tree 2 files changed +24
-20
lines changed
Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 11name : Release
22
3+ permissions :
4+ contents : write
5+
36on :
47 push :
58 tags :
811jobs :
912 release :
1013 runs-on : ubuntu-latest
11- permissions :
12- contents : write
13-
1414 steps :
1515 - uses : actions/checkout@v4
1616 with :
3535 steps :
3636 - uses : actions/checkout@v4
3737
38- - name : Setup pnpm
39- run : corepack enable
38+ - name : Install pnpm
39+ 4040
4141 - name : Set node
4242 uses : actions/setup-node@v4
Original file line number Diff line number Diff 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+ 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+ 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
You can’t perform that action at this time.
0 commit comments