Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
2 changes: 1 addition & 1 deletion .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
node-version: 20

- name: Perform release
run: npx --package @semantic-release/exec semantic-release
run: npx --package @semantic-release/exec --package conventional-changelog-conventionalcommits semantic-release
env:
GH_TOKEN: ${{ steps.get_access_token.outputs.token }}
21 changes: 20 additions & 1 deletion .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,23 @@
uses: actions/checkout@v4

- name: MegaLinter
uses: oxsecurity/megalinter/flavors/documentation@v9
uses: oxsecurity/megalinter/flavors/documentation@v9

commitlint:
runs-on: ubuntu-latest
name: Conventional Commit Validation
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Validate PR commits with commitlint
run: |
npm install --no-save @commitlint/cli @commitlint/config-conventional
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
7 changes: 6 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
}
],
"@semantic-release/github",
"@semantic-release/commit-analyzer"
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
]
]
}
Loading