Skip to content

Commit

Permalink
disable update-notifier in ci manually?
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sheldrick committed Mar 30, 2018
1 parent 7e5def2 commit 8a8adec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
const updateNotifier = require("update-notifier")
const pkg = require("./package.json")

updateNotifier({ pkg }).notify({ isGlobal: false })
const isCi = require("is-ci")

if (!isCi()) {
updateNotifier({ pkg }).notify({ isGlobal: false })
}

require("./dist/index.js")

0 comments on commit 8a8adec

Please sign in to comment.