5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 08:06:54 +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:
Wagner Santos 2019-10-18 16:51:12 -03:00 committed by GitHub
commit 7003639b26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 4756 additions and 156 deletions

View file

@ -0,0 +1,4 @@
---
extends:
- '@commitlint/config-conventional'
- '@commitlint/config-lerna-scopes'

View file

@ -1,6 +1,7 @@
node_modules
.commitlintrc.yml
commitlint.config.js
.commitlintrc-with-lerna-scopes
action.yml
.github
CHANGELOG.md

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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
View file

@ -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 = () =>