This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +30
-14
lines changed Expand file tree Collapse file tree 3 files changed +30
-14
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,23 @@ jobs:
19
19
with :
20
20
node-version-file : ' .nvmrc'
21
21
22
- - name : Install dependencies
23
- run : npx ci
24
-
25
- - name : Build
26
- run : npm run build
22
+ - name : Setup pnpm
23
+
24
+ with :
25
+ version : 7
26
+ run_install : true
27
27
28
28
- name : Lint
29
- run : npm run lint
29
+ run : pnpm lint
30
+
31
+ - name : Type check
32
+ run : pnpm type-check
33
+
34
+ - name : Build
35
+ run : pnpm build
30
36
31
37
- name : Release
32
38
env :
33
39
GH_TOKEN : ${{ secrets.GH_TOKEN }}
34
40
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35
- run : npx semantic-release
41
+ run : pnpx semantic-release
Original file line number Diff line number Diff line change 4
4
branches : [develop]
5
5
pull_request :
6
6
branches : [master, develop, next]
7
+
7
8
jobs :
8
9
test :
9
10
name : Test
@@ -15,14 +16,24 @@ jobs:
15
16
steps :
16
17
- name : Checkout
17
18
uses : actions/checkout@v3
19
+
18
20
- name : Use Node.js
19
21
uses : actions/setup-node@v3
20
22
with :
21
23
node-version-file : ' .nvmrc'
22
- - name : Install dependencies
23
- run : npx ci
24
- - name : Test
25
- run : npm run test
24
+
25
+ - name : Setup pnpm
26
+
27
+ with :
28
+ version : 7
29
+ run_install : true
30
+
26
31
- name : Lint
27
32
if : ${{ matrix.os == 'ubuntu-latest' }}
28
- run : npm run lint
33
+ run : pnpm lint
34
+
35
+ - name : Type check
36
+ run : pnpm type-check
37
+
38
+ - name : Test
39
+ run : pnpm test
Original file line number Diff line number Diff line change 28
28
"build" : " pkgroll --target=node12.19 --minify" ,
29
29
"lint" : " eslint ." ,
30
30
"type-check" : " tsc --noEmit" ,
31
- "pretest" : " npm run build" ,
32
- "test" : " node --loader @esbuild-kit/esm-loader tests"
31
+ "test" : " pnpm build && node --loader @esbuild-kit/esm-loader tests"
33
32
},
34
33
"dependencies" : {
35
34
"@esbuild-kit/core-utils" : " ^2.3.1" ,
You can’t perform that action at this time.
0 commit comments