File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,33 +10,39 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414
1515 - name : Setup pnpm
16- uses : pnpm/action-setup@v2
16+ uses : pnpm/action-setup@v3
1717 with :
18- version : 8
18+ version : 9
1919
2020 - name : Use Node.js
21- uses : actions/setup-node@v3
21+ uses : actions/setup-node@v4
2222 with :
2323 node-version : ' 20.x'
24+ registry-url : ' https://registry.npmjs.org'
2425 cache : ' pnpm'
2526
2627 - name : Install dependencies
27- run : pnpm install
28+ run : pnpm install --no-frozen-lockfile
2829
2930 - name : Build
3031 run : pnpm build
3132
32- - name : Create Release
33- uses : actions/create-release@v1
34- env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ - name : Run tests
34+ run : pnpm test:coverage
35+
36+ - name : Create GitHub Release
37+ uses : softprops/action-gh-release@v1
3638 with :
37- tag_name : ${{ github.ref }}
38- release_name : Release ${{ github.ref }}
39+ generate_release_notes : true
3940 body : |
40- See [CHANGELOG.md](CHANGELOG.md) for details.
41- draft : false
42- prerelease : false
41+ See [CHANGELOG.md](https://github.com/MeridianAlgo/Javascript-Packages/blob/main/CHANGELOG.md) for details.
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+
45+ - name : Publish to npm
46+ run : pnpm publish --no-git-checks
47+ env :
48+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments