Skip to content

Commit ea54ccf

Browse files
bartvenemanBart Veneman
andauthored
use npm ci instead of npm install in CI && npm audit (#29)
* use `npm ci` instead of `npm install` in CI * add npm audit job --------- Co-authored-by: Bart Veneman <[email protected]>
1 parent c38d2a7 commit ea54ccf

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
cache: "npm"
2222
node-version: 22
23-
- run: npm install --ignore-scripts --no-audit --no-fund
23+
- run: npm ci --ignore-scripts --no-audit --no-fund
2424
- run: npm test
2525

2626
check:
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
cache: "npm"
3535
node-version: 22
36-
- run: npm install --ignore-scripts --no-audit --no-fund
36+
- run: npm ci --ignore-scripts --no-audit --no-fund
3737
- run: npm run check
3838

3939
lint-package:
@@ -47,8 +47,22 @@ jobs:
4747
with:
4848
cache: "npm"
4949
node-version: 22
50-
- run: npm install --ignore-scripts --no-audit --no-fund
50+
- run: npm ci --ignore-scripts --no-audit --no-fund
5151
- name: Build package
5252
run: npm run build
5353
- name: Lint package
5454
run: npx publint
55+
56+
npm-audit:
57+
name: Audit packages
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v5
62+
- name: Use Node.js
63+
uses: actions/setup-node@v5
64+
with:
65+
cache: "npm"
66+
node-version: 22
67+
- name: npm audit
68+
run: npm audit --audit-level=high

0 commit comments

Comments
 (0)