Skip to content

Commit fc1492c

Browse files
committed
chore: use npm ci
1 parent de0c06b commit fc1492c

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
node-version: 22
3030

31-
- run: npm install
31+
- run: npm ci
3232

3333
- run: npm test
3434

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626

27-
- run: npm install
27+
- run: npm ci
2828

2929
- run: npm test

.npmrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1+
; Don't download optionalDependencies and peerDependencies.
2+
; Conflicting peerDependencies is a source of issues with npm install.
3+
; This setting forces us to be explicit about listing dependencies.
4+
omit=optional
5+
omit=peer
6+
17
registry=https://registry.npmjs.org
8+
9+
; Prefer specifying dependency versions explicitly. Renovate will open
10+
; pull requests that handle most dependency updates for you.
11+
save-exact=true
12+
13+
; Treat conflicting peerDependencies as a failure,
14+
; even if npm can reasonably guess an appropriate resolution.
15+
strict-peer-deps=true
16+
17+
; Renovate will update packageManager for us.
18+
update-notifier=false

0 commit comments

Comments
 (0)