mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-08 00:16: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
|
node_modules
|
||||||
.commitlintrc.yml
|
.commitlintrc.yml
|
||||||
commitlint.config.js
|
commitlint.config.js
|
||||||
|
.commitlintrc-with-lerna-scopes
|
||||||
action.yml
|
action.yml
|
||||||
.github
|
.github
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
|
|
|
||||||
10
.github/workflows/commitlint.yml
vendored
10
.github/workflows/commitlint.yml
vendored
|
|
@ -20,3 +20,13 @@ jobs:
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
configFile: './.commitlintrc.yml'
|
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'
|
||||||
|
|
|
||||||
4880
package-lock.json
generated
4880
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -27,7 +27,8 @@
|
||||||
"@commitlint/load": "8.2.0",
|
"@commitlint/load": "8.2.0",
|
||||||
"commitlint-config-jira": "1.0.9",
|
"commitlint-config-jira": "1.0.9",
|
||||||
"conventional-changelog-lint-config-canonical": "1.0.0",
|
"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": {
|
"devDependencies": {
|
||||||
"conventional-changelog-cli": "2.0.23",
|
"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 => {
|
const exitWithMessage = message => error => {
|
||||||
core.setFailed(`${message}\n${error}`)
|
core.setFailed(`${message}\n${error.message}\n${error.stack}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const main = () =>
|
const main = () =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue