Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"subject-case": [0],
"body-max-line-length": [0]
}
}
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 }}
24 changes: 23 additions & 1 deletion .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: PR Linting

permissions:
contents: read

on:
pull_request:
types: [opened, reopened, synchronize]
Expand All @@ -13,4 +16,23 @@ jobs:
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