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+ {
2+ "extends" : [" @commitlint/config-conventional" ],
3+ "rules" : {
4+ "subject-case" : [0 ],
5+ "body-max-line-length" : [0 ]
6+ }
7+ }
Original file line number Diff line number Diff line change 3131 node-version : 20
3232
3333 - name : Perform release
34- run : npx --package @semantic-release/exec semantic-release
34+ run : npx --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release
3535 env :
3636 GH_TOKEN : ${{ steps.get_access_token.outputs.token }}
Original file line number Diff line number Diff line change 11name : PR Linting
22
3+ permissions :
4+ contents : read
5+
36on :
47 pull_request :
58 types : [opened, reopened, synchronize]
1316 uses : actions/checkout@v4
1417
1518 - name : MegaLinter
16- uses : oxsecurity/megalinter/flavors/documentation@v9
19+ uses : oxsecurity/megalinter/flavors/documentation@v9
20+
21+ commitlint :
22+ runs-on : ubuntu-latest
23+ name : Conventional Commit Validation
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@v4
27+ with :
28+ fetch-depth : 0
29+
30+ - name : Setup node
31+ uses : actions/setup-node@v4
32+ with :
33+ node-version : 20
34+
35+ - name : Validate PR commits with commitlint
36+ run : |
37+ npm install --no-save @commitlint/cli @commitlint/config-conventional
38+ npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
Original file line number Diff line number Diff line change 2121 }
2222 ],
2323 "@semantic-release/github",
24- "@semantic-release/commit-analyzer"
24+ [
25+ "@semantic-release/commit-analyzer",
26+ {
27+ "preset": "conventionalcommits"
28+ }
29+ ]
2530 ]
2631}
You can’t perform that action at this time.
0 commit comments