Skip to content

Commit e7ed8b1

Browse files
committed
ci: add back npm audit
1 parent 682a4e7 commit e7ed8b1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release-on-push-to-mainline.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ jobs:
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626

27-
# - name: Audit
28-
# run: npm audit --audit-level critical
29-
3027
# 14.x fails with "npm ERR! Cannot read property '@commitlint/config-conventional' of undefined"
31-
# when running npm ci due to the new package-lock.json format.
28+
# when running `npm ci` due to the new package-lock.json format. Run `npm i` instead
3229
- name: Install (14.x)
3330
if: matrix.node-version == '14.x'
3431
run: npm i
@@ -48,6 +45,10 @@ jobs:
4845
if: matrix.node-version == '20.x'
4946
run: npm run lint
5047

48+
- name: Audit
49+
if: matrix.node-version == '20.x'
50+
run: npm audit --audit-level critical
51+
5152
- name: Release
5253
if: github.event_name == 'push' && github.ref == 'refs/heads/mainline' && matrix.node-version == '20.x'
5354
run: npm run release

0 commit comments

Comments
 (0)