mirror of
https://github.com/material-components/material-web.git
synced 2026-01-15 01:12:27 +08:00
23 lines
456 B
YAML
23 lines
456 B
YAML
name: commitlint
|
|
|
|
on: [pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- run: npm install -g @commitlint/cli @commitlint/config-conventional
|
|
- run: 'echo "${PR_TITLE}" | commitlint'
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|