generated from rollup/rollup-starter-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.04 KB
/
validate-pr-title.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'Validate PR Title'
on:
pull_request:
types: [opened, reopened, synchronize, edited]
jobs:
lint-pr-title:
name: 'Lint PR Title'
runs-on: ubuntu-latest
concurrency:
group: lint-pr-title:${{ github.event_name }}:${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: |
yarn lint:commit-message <<"EOM"
${{ github.event.pull_request.title }}
${{ github.event.pull_request.body }}
EOM