Skip to content

Commit

Permalink
feat(prlint): 更改 prlint 功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Norton-Lin authored and hepear committed Oct 16, 2024
2 parents e0dee16 + 6393df2 commit 2abeef0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Commitlint
name: PRlint

on:
push:
branches-ignore: ["main"] # 排除 main 分支的 push 事件
branches: ["main"] # 监听 main 分支的 push 事件
pull_request:
branches-ignore: ["main"] # 排除 main 分支的 pull request 事件
branches: ["main"] # 监听向 main 分支发起的 pull request
workflow_dispatch:

jobs:
Expand All @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '20'
node-version: '16' # 使用稳定的 Node.js 版本,比如 16
- run: npm install -g @commitlint/cli @commitlint/config-conventional
- run: |
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
Expand Down

0 comments on commit 2abeef0

Please sign in to comment.