Skip to content
Permalink
Browse files
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 d8e811d6adf3d87474982cb831c11316ac725605
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/npm-cli.js
@@ -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')

0 comments on commit d8e811d

Please sign in to comment.