Skip to content

Commit d8e811d

Browse files
committed
update-notifier: skip checking for updates in CI environments
PR-URL: #33 Credit: @sibiraj-s Reviewed-By: @zkat
1 parent 577144c commit d8e811d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/npm-cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@
8383
) {
8484
const pkg = require('../package.json')
8585
let notifier = require('update-notifier')({pkg})
86+
const isCI = require('ci-info').isCI
8687
if (
8788
notifier.update &&
88-
notifier.update.latest !== pkg.version
89+
notifier.update.latest !== pkg.version &&
90+
!isCI
8991
) {
9092
const color = require('ansicolors')
9193
const useColor = npm.config.get('color')

0 commit comments

Comments
 (0)