File tree 2 files changed +15
-17
lines changed
2 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 9
9
branches :
10
10
- main
11
11
- dev
12
+ workflow_dispatch :
12
13
13
14
jobs :
14
15
ci :
15
- runs-on : ${{ matrix.os }}
16
-
17
- strategy :
18
- matrix :
19
- os : [ubuntu-latest]
20
- node : [20]
16
+ runs-on : ubuntu-latest
21
17
22
18
steps :
23
- - uses : actions/setup-node@v1
24
- with :
25
- node-version : ${{ matrix.node }}
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
26
21
27
- - name : checkout
28
- uses : actions/checkout@master
22
+ - uses : pnpm/action-setup@v4
23
+ name : Install pnpm
24
+ with :
25
+ version : 9
26
+ run_install : false
29
27
30
- - name : cache node_modules
31
- uses : actions/cache@v1
28
+ - name : Install Node.js
29
+ uses : actions/setup-node@v4
32
30
with :
33
- path : node_modules
34
- key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/ pnpm-lock.yaml')) }}
31
+ node-version : 20
32
+ cache : pnpm
35
33
36
34
- name : Install dependencies
37
- if : steps.cache.outputs.cache-hit != 'true'
38
- run : pnpm i
35
+ run : pnpm install
39
36
40
37
- name : Test
41
38
run : pnpm test
Original file line number Diff line number Diff line change 38
38
"build" : " unbuild" ,
39
39
"dev" : " vitest" ,
40
40
"lint" : " eslint ." ,
41
+ "lint:fix" : " eslint --fix ." ,
41
42
"release" : " yarn build && changelogen --patch && git push --follow-tags && yarn publish" ,
42
43
"test" : " pnpm lint && pnpm test:types && vitest --run" ,
43
44
"test:types" : " tsc --noEmit --skipLibCheck"
You can’t perform that action at this time.
0 commit comments