Skip to content

Commit a80a663

Browse files
committed
fix: install commitlint deps to package.json
1 parent db06db3 commit a80a663

File tree

9 files changed

+10
-15
lines changed

9 files changed

+10
-15
lines changed

.github/workflows/audit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
- name: Update npm to latest
2424
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
2525
- run: npm -v
26-
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock
26+
- run: npm i --ignore-scripts --no-audit --no-fund
2727
- run: npm audit

.github/workflows/pull-request.yml

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
- name: Update npm to latest
2929
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
3030
- run: npm -v
31-
- name: Install deps
32-
run: npm i -D @commitlint/cli @commitlint/config-conventional
3331
- name: Check commits OR PR title
3432
env:
3533
PR_TITLE: ${{ github.event.pull_request.title }}

lib/content/audit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
steps:
1313
{{> setupGit}}
1414
{{> setupNode}}
15-
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock
15+
{{> setupDeps}}
1616
- run: npm audit

lib/content/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
{{> setupGit}}
3030
{{> setupNode}}
31-
- run: npm i --ignore-scripts --no-audit --no-fund
31+
{{> setupDeps}}
3232
- run: npm run lint {{~#if isWorkspace}} -w {{pkgName}}{{/if}}
3333

3434
test:
@@ -57,5 +57,5 @@ jobs:
5757
{{> setupNode useMatrix=true}}
5858
- name: add tap problem matcher
5959
run: echo "::add-matcher::.github/matchers/tap.json"
60-
- run: npm i --ignore-scripts --no-audit --no-fund
60+
{{> setupDeps}}
6161
- run: npm test --ignore-scripts {{~#if isWorkspace}} -w {{pkgName}}{{/if}}

lib/content/pull-request.yml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
steps:
1616
{{> setupGit with=(obj fetch-depth=0)}}
1717
{{> setupNode}}
18-
- name: Install deps
19-
run: npm i -D @commitlint/cli @commitlint/config-conventional
2018
- name: Check commits OR PR title
2119
env:
2220
PR_TITLE: $\{{ github.event.pull_request.title }}

lib/content/setup-deps.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- run: npm i --ignore-scripts --no-audit --no-fund {{~#if lockfile}} --package-lock{{/if}}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"license": "ISC",
3434
"dependencies": {
3535
"@actions/core": "^1.9.1",
36+
"@commitlint/cli": "^17.1.1",
37+
"@commitlint/config-conventional": "^17.1.0",
3638
"@npmcli/fs": "^2.0.1",
3739
"@npmcli/git": "^3.0.0",
3840
"@npmcli/map-workspaces": "^2.0.2",

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

+2-6
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
- name: Update npm to latest
191191
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
192192
- run: npm -v
193-
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock
193+
- run: npm i --ignore-scripts --no-audit --no-fund
194194
- run: npm audit
195195
196196
.github/workflows/ci.yml
@@ -409,8 +409,6 @@ jobs:
409409
- name: Update npm to latest
410410
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
411411
- run: npm -v
412-
- name: Install deps
413-
run: npm i -D @commitlint/cli @commitlint/config-conventional
414412
- name: Check commits OR PR title
415413
env:
416414
PR_TITLE: \${{ github.event.pull_request.title }}
@@ -818,7 +816,7 @@ jobs:
818816
- name: Update npm to latest
819817
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
820818
- run: npm -v
821-
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock
819+
- run: npm i --ignore-scripts --no-audit --no-fund
822820
- run: npm audit
823821
824822
.github/workflows/ci-bbb.yml
@@ -1227,8 +1225,6 @@ jobs:
12271225
- name: Update npm to latest
12281226
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
12291227
- run: npm -v
1230-
- name: Install deps
1231-
run: npm i -D @commitlint/cli @commitlint/config-conventional
12321228
- name: Check commits OR PR title
12331229
env:
12341230
PR_TITLE: \${{ github.event.pull_request.title }}

tap-snapshots/test/check/diffs.js.test.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ The repo file audit.yml needs to be updated:
378378
- name: Update npm to latest
379379
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
380380
- run: npm -v
381-
- run: npm i --ignore-scripts --no-audit --no-fund --package-lock
381+
- run: npm i --ignore-scripts --no-audit --no-fund
382382
- run: npm audit
383383
384384

0 commit comments

Comments
 (0)