mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
fix: lerna scopes not working due to missing lerna dependency
`@commitlint/config-lerna-scopes` package depends on lerna but doesn't have `lerna` listed in its dependencies, so the action was failing. Since this action doesn't run in the repo's context, we need to install lerna as a dependency to make it work.
This commit is contained in:
parent
2c42093c70
commit
99b068a844
5 changed files with 4755 additions and 155 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'
|
||||
|
|
|
|||
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-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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue