Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update-notifier: skip checking for updates in CI environments
PR-URL: #33
Credit: @sibiraj-s
Reviewed-By: @zkat
  • Loading branch information
zkat committed Aug 20, 2018
1 parent 577144c commit d8e811d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/npm-cli.js
Expand Up @@ -83,9 +83,11 @@
) {
const pkg = require('../package.json')
let notifier = require('update-notifier')({pkg})
const isCI = require('ci-info').isCI
if (
notifier.update &&
notifier.update.latest !== pkg.version
notifier.update.latest !== pkg.version &&
!isCI
) {
const color = require('ansicolors')
const useColor = npm.config.get('color')
Expand Down

0 comments on commit d8e811d

Please sign in to comment.