Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pr-commit-lint): 完成 pr-commit-lint 分支的任务 #12

Closed
wants to merge 26 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5b4a213
Create lint.yml
lvmingze123 Oct 11, 2024
6a50c24
Update lint.yml
lvmingze123 Oct 11, 2024
3f6a98d
Update lint.yml
lvmingze123 Oct 11, 2024
6ad8820
Update lint.yml
lvmingze123 Oct 11, 2024
a814804
Update lint.yml
lvmingze123 Oct 11, 2024
1d6f92b
Update lint.yml
lvmingze123 Oct 11, 2024
54d0ae3
Update lint.yml
lvmingze123 Oct 11, 2024
9d4a786
Update commitlint workflow to exclude main branch and dynamically con…
hepear Oct 11, 2024
45789e9
Update commitlint workflow to exclude main branch and dynamically con…
hepear Oct 11, 2024
ddbed8a
Update commitlint.yml to ensure it triggers on push/pull_request and …
hepear Oct 13, 2024
fe3fcf2
Update commitlint.yml to ensure it triggers on push/pull_request and …
hepear Oct 13, 2024
9eea77c
Update commitlint.yml to use latest versions of actions and fix Node.…
hepear Oct 13, 2024
e1a6f98
Update commitlint.yml to ensure package-lock.json exists and dependen…
hepear Oct 13, 2024
37747ca
Update commitlint.yml to ensure package.json and package-lock.json exist
hepear Oct 13, 2024
0c72b73
Update commitlint.yml to address deprecation warnings
hepear Oct 13, 2024
87383c4
Add .gitignore file to exclude node_modules/
hepear Oct 13, 2024
ec612f7
Update commitlint.yml
hepear Oct 13, 2024
4de7454
Update commitlint.yml
hepear Oct 13, 2024
02522f2
Update commitlint.yml
hepear Oct 13, 2024
2c17416
Update commitlint.yml
hepear Oct 13, 2024
eef2d9a
Update commitlint.yml
hepear Oct 13, 2024
7e536e9
Update commitlint.yml
hepear Oct 13, 2024
b4f77b2
Update commitlint.yml
hepear Oct 13, 2024
4b24a2b
Update commitlint.yml
hepear Oct 13, 2024
8bba714
Update commitlint.yml
hepear Oct 13, 2024
50b1db9
Add new commitlint workflow
hepear Oct 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update commitlint.yml to ensure package-lock.json exists and dependen…
…cies are installed correctly
hepear committed Oct 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e1a6f98d9dc6a1221186ebe5f459f242afb65cfe
15 changes: 11 additions & 4 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -15,17 +15,24 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4 # 使用最新版本的 checkout 动作
uses: actions/checkout@v3 # 使用最新版本的 checkout 动作

- name: Set up Node.js
uses: actions/setup-node@v4 # 使用最新版本的 setup-node 动作
uses: actions/setup-node@v3 # 使用最新版本的 setup-node 动作
with:
node-version: '20' # 显式指定 Node.js 版本

- name: Generate package-lock.json
run: |
# 确保 package-lock.json 文件存在
if [ ! -f "package-lock.json" ]; then
# 如果 package-lock.json 不存在,则生成
npm install
fi

- name: Install Dependencies
run: |
npm ci
npm install @commitlint/cli @commitlint/config-conventional
npm ci # 使用 npm ci 安装依赖

- name: Configure Commitlint
run: |