File tree Expand file tree Collapse file tree 5 files changed +4506
-8281
lines changed
Expand file tree Collapse file tree 5 files changed +4506
-8281
lines changed Original file line number Diff line number Diff line change 11name : build
22on :
3+ pull_request :
34 push :
5+ branches :
6+ - main
47
58jobs :
69 build :
@@ -13,26 +16,28 @@ jobs:
1316 node-version : [18.x, 20.x]
1417 steps :
1518 - uses : actions/checkout@v4
16- - name : Use Node.js ${{ matrix.node-version }}
17- uses : actions/setup-node@v3
19+ - uses : pnpm/action-setup@v2
1820 with :
19- node-version : ${{ matrix.node-version }}
20- cache : npm
21- - run : npm ci
21+ version : 8
22+ - uses : actions/setup-node@v4
23+ with :
24+ node-version : 20.x
25+ cache : pnpm
26+ - run : pnpm i
2227 - name : types
2328 run : npm run check:types
2429 - name : build
25- run : npm run build
30+ run : pnpm run build
2631 - name : test
2732 id : test
2833 if : ${{ always() }}
29- run : npm run test
34+ run : pnpm run test
3035 - name : lint
3136 if : ${{ always() }}
32- run : npm run lint
37+ run : pnpm run lint
3338 - name : style
3439 if : ${{ always() }}
35- run : npm run format:check
40+ run : pnpm run format:check
3641
3742 codecov : # Send only a single coverage report per run
3843 needs : build
@@ -42,13 +47,15 @@ jobs:
4247 runs-on : ubuntu-latest
4348 steps :
4449 - uses : actions/checkout@v4
45- - name : Use Node.js lts
46- uses : actions/setup-node@v3
50+ - uses : pnpm/action-setup@v2
51+ with :
52+ version : 8
53+ - uses : actions/setup-node@v4
4754 with :
4855 node-version : 20.x
49- cache : npm
50- - run : npm ci
56+ cache : pnpm
57+ - run : pnpm i
5158 - name : test
52- run : npm run test:coverage
59+ run : pnpm run test:coverage
5360 - name : codecov
5461 uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change @@ -24,36 +24,37 @@ jobs:
2424 - uses : actions/checkout@v4
2525 with :
2626 fetch-depth : 0 # Need history for changelog generation
27- - name : Use Node.js lts
28- uses : actions/setup-node@v3
27+ - uses : pnpm/action-setup@v2
28+ with :
29+ version : 8
30+ - uses : actions/setup-node@v4
2931 with :
3032 node-version : 20.x
31- cache : npm
32- registry-url : https://registry.npmjs.org
33- - run : npm ci
33+ cache : pnpm
34+ - run : pnpm i
3435 - name : types
35- run : npm run check:types
36+ run : pnpm run check:types
3637 - name : build
37- run : npm run build
38+ run : pnpm run build
3839 - name : test
3940 id : test
4041 if : ${{ always() }}
41- run : npm run test -- --coverage
42+ run : pnpm run test --coverage
4243 - name : lint
4344 if : ${{ always() }}
44- run : npm run lint
45+ run : pnpm run lint
4546 - name : style
4647 if : ${{ always() }}
47- run : npm run format:check
48+ run : pnpm run format:check
4849 - name : npm auth
49- run : npm set "//registry.npmjs.org/:_authToken" ${{ env.NPM_TOKEN }}
50+ run : pnpm set "//registry.npmjs.org/:_authToken" ${{ env.NPM_TOKEN }}
5051 - name : config git user
5152 run : |
5253 git config --global user.name ${{ secrets.ACTION_GITHUB_USERNAME }};
5354 git config --global user.email ${{ secrets.ACTION_GITHUB_EMAIL }};
5455 - name : perform release
5556 run : |
56- npm run release -- \
57+ pnpm run release \
5758 ${{ github.event.inputs.version }} \
5859 --ci
5960 - name : codecov # Perform after version publishing
You can’t perform that action at this time.
0 commit comments