Skip to content

Commit

Permalink
update-notifier: skip checking for updates in CI environments
Browse files Browse the repository at this point in the history
PR-URL: #33
Credit: @sibiraj-s
Reviewed-By: @zkat
  • Loading branch information
zkat committed Aug 20, 2018
1 parent c3bdc74 commit cabc0f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/npm-cli.js
Original file line number Diff line number Diff line change
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 cabc0f0

Please sign in to comment.