mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
`@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.
32 lines
890 B
YAML
32 lines
890 B
YAML
name: Commitlint
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
commitlint:
|
|
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: ./
|
|
commitlint-with-yml-file:
|
|
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.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'
|