5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 08:06:54 +00:00
commitlint-github-action/.github/workflows/commitlint.yml
Wagner Santos 99b068a844 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.
2019-10-18 16:44:52 -03:00

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'