Skip to content

Commit

Permalink
ci:test
Browse files Browse the repository at this point in the history
  • Loading branch information
Norton-Lin committed Oct 13, 2024
1 parent e0dee16 commit 1ae3af2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Commitlint
on:
push:
branches-ignore: ["main"] # 排除 main 分支的 push 事件
pull_request:
branches-ignore: ["main"] # 排除 main 分支的 pull request 事件
pull_request: # 修正为 pull_request
# 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 1ae3af2

Please sign in to comment.