Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cabc0f0

Browse files
committedAug 20, 2018
update-notifier: skip checking for updates in CI environments
PR-URL: #33 Credit: @sibiraj-s Reviewed-By: @zkat
1 parent c3bdc74 commit cabc0f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎bin/npm-cli.js

+3-1
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)
Please sign in to comment.