mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
Merge pull request #9 from wagoid/fix/lerna-scopes-not-working-due-to-missing-lerna
Fix/lerna scopes not working due to missing lerna
This commit is contained in:
commit
7003639b26
6 changed files with 4756 additions and 156 deletions
4
.commitlintrc-with-lerna-scopes.yml
Normal file
4
.commitlintrc-with-lerna-scopes.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
extends:
|
||||
- '@commitlint/config-conventional'
|
||||
- '@commitlint/config-lerna-scopes'
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
node_modules
|
||||
.commitlintrc.yml
|
||||
commitlint.config.js
|
||||
.commitlintrc-with-lerna-scopes
|
||||
action.yml
|
||||
.github
|
||||
CHANGELOG.md
|
||||
|
|
|
|||
10
.github/workflows/commitlint.yml
vendored
10
.github/workflows/commitlint.yml
vendored
|
|
@ -20,3 +20,13 @@ jobs:
|
|||
- uses: ./
|
||||
with:
|
||||
configFile: './.commitlintrc.yml'
|
||||
commitlint-with-lerna-scopes:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: sed -i -E "s/([']docker:.+)/Dockerfile/" ./action.yml
|
||||
- uses: ./
|
||||
with:
|
||||
configFile: './.commitlintrc-with-lerna-scopes.yml'
|
||||
|
|
|
|||
4892
package-lock.json
generated
4892
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -27,7 +27,8 @@
|
|||
"@commitlint/load": "8.2.0",
|
||||
"commitlint-config-jira": "1.0.9",
|
||||
"conventional-changelog-lint-config-canonical": "1.0.0",
|
||||
"git-raw-commits": "2.0.2"
|
||||
"git-raw-commits": "2.0.2",
|
||||
"lerna": "3.18.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"conventional-changelog-cli": "2.0.23",
|
||||
|
|
|
|||
2
run.js
2
run.js
|
|
@ -87,7 +87,7 @@ const showLintResults = async ([from, to]) => {
|
|||
}
|
||||
|
||||
const exitWithMessage = message => error => {
|
||||
core.setFailed(`${message}\n${error}`)
|
||||
core.setFailed(`${message}\n${error.message}\n${error.stack}`)
|
||||
}
|
||||
|
||||
const main = () =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue