Skip to content

Update pr.yml

Update pr.yml #8

Workflow file for this run

name: Commitlint
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm install -g @commitlint/cli @commitlint/config-conventional
- run: echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js

Check failure on line 16 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose