Skip to content

Commit f24d789

Browse files
committed
fix: use peer deps for commitlint deps
1 parent 8b9afdc commit f24d789

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

.github/workflows/pull-request.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ jobs:
2929
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
3030
- run: npm -v
3131
- name: Install deps
32-
run: |
33-
npm i -D @commitlint/cli @commitlint/config-conventional
32+
run: npm i -D @commitlint/cli @commitlint/config-conventional
3433
- name: Check commits OR PR title
3534
env:
3635
PR_TITLE: ${{ github.event.pull_request.title }}
3736
run: |
38-
npx commitlint -x @commitlint/config-conventional -V \
39-
--from origin/main --to ${{ github.event.pull_request.head.sha }} \
40-
|| echo $PR_TITLE | \
41-
npx commitlint -x @commitlint/config-conventional -V
37+
npx --offline commitlint -V --from origin/main --to ${{ github.event.pull_request.head.sha }} \
38+
|| echo $PR_TITLE | npx --offline commitlint -V

lib/content/pull-request.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ jobs:
1616
{{> setupGit with=(obj fetch-depth=0)}}
1717
{{> setupNode}}
1818
- name: Install deps
19-
run: |
20-
npm i -D @commitlint/cli @commitlint/config-conventional
19+
run: npm i -D @commitlint/cli @commitlint/config-conventional
2120
- name: Check commits OR PR title
2221
env:
2322
PR_TITLE: $\{{ github.event.pull_request.title }}
2423
run: |
25-
npx commitlint -x @commitlint/config-conventional -V \
26-
--from origin/main --to $\{{ github.event.pull_request.head.sha }} \
27-
|| echo $PR_TITLE | \
28-
npx commitlint -x @commitlint/config-conventional -V
24+
npx --offline commitlint -V --from origin/main --to $\{{ github.event.pull_request.head.sha }} \
25+
|| echo $PR_TITLE | npx --offline commitlint -V

tap-snapshots/test/apply/full-content.js.test.cjs

+6-12
Original file line numberDiff line numberDiff line change
@@ -369,16 +369,13 @@ jobs:
369369
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
370370
- run: npm -v
371371
- name: Install deps
372-
run: |
373-
npm i -D @commitlint/cli @commitlint/config-conventional
372+
run: npm i -D @commitlint/cli @commitlint/config-conventional
374373
- name: Check commits OR PR title
375374
env:
376375
PR_TITLE: \${{ github.event.pull_request.title }}
377376
run: |
378-
npx commitlint -x @commitlint/config-conventional -V /
379-
--from origin/main --to \${{ github.event.pull_request.head.sha }} /
380-
|| echo $PR_TITLE | /
381-
npx commitlint -x @commitlint/config-conventional -V
377+
npx --offline commitlint -V --from origin/main --to \${{ github.event.pull_request.head.sha }} /
378+
|| echo $PR_TITLE | npx --offline commitlint -V
382379
383380
.github/workflows/release-please.yml
384381
========================================
@@ -1034,16 +1031,13 @@ jobs:
10341031
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
10351032
- run: npm -v
10361033
- name: Install deps
1037-
run: |
1038-
npm i -D @commitlint/cli @commitlint/config-conventional
1034+
run: npm i -D @commitlint/cli @commitlint/config-conventional
10391035
- name: Check commits OR PR title
10401036
env:
10411037
PR_TITLE: \${{ github.event.pull_request.title }}
10421038
run: |
1043-
npx commitlint -x @commitlint/config-conventional -V /
1044-
--from origin/main --to \${{ github.event.pull_request.head.sha }} /
1045-
|| echo $PR_TITLE | /
1046-
npx commitlint -x @commitlint/config-conventional -V
1039+
npx --offline commitlint -V --from origin/main --to \${{ github.event.pull_request.head.sha }} /
1040+
|| echo $PR_TITLE | npx --offline commitlint -V
10471041
10481042
.github/workflows/release-please-bbb.yml
10491043
========================================

0 commit comments

Comments
 (0)