mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-01 15:26: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
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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue