File tree 3 files changed +21
-15
lines changed
3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 9
9
- name : Checkout code
10
10
uses : actions/checkout@v4
11
11
12
- - run : corepack enable
12
+ - name : Install pnpm
13
+
14
+
13
15
- uses : actions/setup-node@v4
14
16
with :
15
17
node-version : lts/*
Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ jobs:
31
31
- run : npx changelogithub
32
32
continue-on-error : true
33
33
env :
34
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
35
36
36
- name : Install Dependencies
37
37
run : pnpm i
38
38
39
39
- name : Publish to NPM
40
40
run : pnpm -r publish --access public --no-git-checks
41
41
env :
42
- NODE_AUTH_TOKEN : ${{secrets.NPM_PUBLISH_TOKEN}}
42
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
43
43
NPM_CONFIG_PROVENANCE : true
Original file line number Diff line number Diff line change @@ -13,23 +13,26 @@ jobs:
13
13
lint :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v4
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Install pnpm
20
+
21
+
17
22
- name : Set node
18
23
uses : actions/setup-node@v4
19
24
with :
20
25
node-version : lts/*
21
-
22
- - name : Setup
23
- run : npm i -g @antfu/ni
26
+ cache : pnpm
24
27
25
28
- name : Install
26
- run : nci
29
+ run : pnpm i
27
30
28
31
- name : Type Check
29
- run : nr typecheck
32
+ run : pnpm run typecheck
30
33
31
34
- name : Lint
32
- run : nr lint
35
+ run : pnpm run lint
33
36
34
37
test :
35
38
strategy :
@@ -42,19 +45,20 @@ jobs:
42
45
steps :
43
46
- uses : actions/checkout@v4
44
47
48
+ - name : Install pnpm
49
+
50
+
45
51
- name : Set node ${{ matrix.node-version }}
46
52
uses : actions/setup-node@v4
47
53
with :
48
54
node-version : ${{ matrix.node-version }}
49
-
50
- - name : Setup
51
- run : npm i -g @antfu/ni
55
+ cache : pnpm
52
56
53
57
- name : Install
54
- run : nci
58
+ run : pnpm i
55
59
56
60
- name : Build
57
- run : nr build
61
+ run : pnpm run build
58
62
59
63
- name : Build Examples
60
64
run : pnpm run -r --parallel build
You can’t perform that action at this time.
0 commit comments