Skip to content

Commit 99b068a

Browse files
committed
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.
1 parent 2c42093 commit 99b068a

File tree

5 files changed

+4813
-213
lines changed

5 files changed

+4813
-213
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
extends:
3+
- '@commitlint/config-conventional'
4+
- '@commitlint/config-lerna-scopes'

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules
22
.commitlintrc.yml
33
commitlint.config.js
4+
.commitlintrc-with-lerna-scopes
45
action.yml
56
.github
67
CHANGELOG.md

.github/workflows/commitlint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ jobs:
2020
- uses: ./
2121
with:
2222
configFile: './.commitlintrc.yml'
23+
commitlint-with-lerna-scopes:
24+
runs-on: ubuntu-latest
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
steps:
28+
- uses: actions/checkout@v1
29+
- run: sed -i -E "s/([']docker:.+)/Dockerfile/" ./action.yml
30+
- uses: ./
31+
with:
32+
configFile: './.commitlintrc-with-lerna-scopes.yml'

0 commit comments

Comments
 (0)