99 build :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v4
12+ - uses : actions/checkout@v6
13+
14+ - name : Install pnpm
15+ uses : pnpm/action-setup@v4
1316
1417 - name : Set up Node.js
15- uses : actions/setup-node@v4
18+ uses : actions/setup-node@v6
1619 with :
17- node-version : lts/*
18- cache : yarn
20+ node-version-file : .nvmrc
21+ cache : pnpm
1922
20- - name : Installing
21- run : yarn --frozen-lockfile --perfer-offline
23+ - name : Install dependencies
24+ run : pnpm install --frozen-lockfile
2225
2326 - name : Lint
24- run : yarn lint
27+ run : pnpm lint
2528
2629 - name : Unit tests
27- run : yarn test -- coverage --coverageReporters=lcov --coverageReporters=text-summary
30+ run : pnpm test: coverage
2831
2932 - name : Send test coverage to codecov
3033 continue-on-error : true
31- uses : codecov/codecov-action@v3
34+ uses : codecov/codecov-action@v4
3235
3336 - name : Build
34- run : yarn build
37+ run : pnpm build
3538
3639 - name : Archive build
3740 uses : actions/upload-artifact@v4
@@ -44,21 +47,28 @@ jobs:
4447 if : github.event_name == 'push'
4548 runs-on : ubuntu-latest
4649 steps :
47- - name : Set up Node
48- uses : actions/setup-node@v4
49- with :
50- node-version : 16.x
50+ - uses : actions/checkout@v6
51+
52+ - name : Install pnpm
53+ uses : pnpm/action-setup@v4
5154
52- - uses : actions/checkout@v4
55+ - name : Set up Node.js
56+ uses : actions/setup-node@v6
57+ with :
58+ node-version-file : .nvmrc
59+ cache : pnpm
5360
54- - name : Download lib form build job
61+ - name : Download lib from build job
5562 uses : actions/download-artifact@v4
5663 with :
5764 name : lib
5865 path : lib
5966
67+ - name : Install dependencies
68+ run : pnpm install --frozen-lockfile
69+
6070 - name : Semantic Release
61- uses : cycjimmy/semantic-release-action@v3
71+ uses : cycjimmy/semantic-release-action@v6
6272 with :
6373 extra_plugins : |
6474 @semantic-release/changelog
6979 GIT_COMMITTER_EMAIL : ${{ secrets.GIT_AUTHOR_EMAIL }}
7080 GIT_COMMITTER_NAME : ${{ secrets.GIT_AUTHOR_NAME }}
7181 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments