Advertisement
Guest User

Untitled

a guest
May 2nd, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.52 KB | None | 0 0
  1. name: Run commitlint on pull request
  2.  
  3. on: pull_request
  4.  
  5. jobs:
  6.   run-commitlint-on-pull-request:
  7.     runs-on: ubuntu-latest
  8.  
  9.     steps:
  10.       - uses: actions/checkout@v2
  11.         with:
  12.           fetch-depth: 0
  13.           ref: ${{ github.event.pull_request.head.sha }}
  14.  
  15.       - name: Setup Node
  16.         uses: actions/setup-node@v2
  17.         with:
  18.           node-version: 14.x
  19.  
  20.       - name: Install dependencies
  21.         run: npm install
  22.  
  23.       - name: Validate all commits from PR
  24.         run: npx commitlint --verbose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement