File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ release-please :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : google-github-actions/release-please-action@v3
13+ id : release
14+ with :
15+ token : ${{ secrets.BOT_TOKEN }}
16+ release-type : node
17+ package-name : ' ml-array-utils'
18+ bump-minor-pre-major : true
19+ - uses : actions/checkout@v4
20+ # These if statements ensure that a publication only occurs when a new release is created
21+ if : ${{ steps.release.outputs.release_created }}
22+ with :
23+ fetch-depth : 0
24+ token : ${{ secrets.BOT_TOKEN }}
25+ - uses : actions/setup-node@v4
26+ if : ${{ steps.release.outputs.release_created }}
27+ with :
28+ node-version : 20.x
29+ registry-url : ' https://registry.npmjs.org'
30+ - name : Run Lerna publish
31+ if : ${{ steps.release.outputs.release_created }}
32+ run : |
33+ git config --global user.name "mljs-bot"
34+ git config --global user.email "72700744+mljs-bot@users.noreply.github.com"
35+ npm install
36+ npm run publish
37+ env :
38+ NODE_AUTH_TOKEN : ${{ secrets.NPM_BOT_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "$schema" : " node_modules/lerna/schemas/lerna-schema.json" ,
33 "conventionalCommits" : true ,
4- "packages" : [" packages/*" ],
5- "command" : {
6- "bootstrap" : {
7- "npmClientArgs" : [" --no-package-lock" ]
8- }
9- },
10- "version" : " independent"
4+ "changelogPreset" : " conventionalcommits" ,
5+ "version" : " independent" ,
6+ "packages" : [" packages/*" ]
117}
Original file line number Diff line number Diff line change 1818 "install-clean" : " rimraf node_modules packages/*/node_modules" ,
1919 "prettier" : " prettier --check ." ,
2020 "prettier-write" : " prettier --write ." ,
21- "publish" : " npm run test && npm run build && npm run test && lerna publish -y --no-verify-access" ,
21+ "publish" : " npm run test && npm run build && lerna publish -y --no-verify-access" ,
2222 "test" : " npm run test-only && tsc --noEmit && npm run eslint && npm run prettier" ,
2323 "test-only" : " vitest --run --coverage" ,
2424 "tsc" : " tsc --build" ,
2828 "@types/node" : " ^25.6.0" ,
2929 "@vitest/coverage-v8" : " ^4.1.4" ,
3030 "@zakodium/tsconfig" : " ^1.0.5" ,
31+ "conventional-changelog-conventionalcommits" : " ^9.3.1" ,
3132 "eslint" : " ^9.39.4" ,
3233 "eslint-config-cheminfo-typescript" : " ^21.2.0" ,
3334 "lerna" : " ^9.0.5" ,
You can’t perform that action at this time.
0 commit comments