Skip to content

Commit

Permalink
fix: don't report error on CI (#5645)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer committed Apr 20, 2023
1 parent 1499259 commit 168f4e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/telemetry/report-error.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { dirname, join } from 'path'
import process, { version as nodejsVersion } from 'process'
import { fileURLToPath } from 'url'

import { isCI } from 'ci-info'

import execa from '../execa.mjs'
import getGlobalConfig from '../get-global-config.mjs'

Expand All @@ -19,6 +21,10 @@ const dirPath = dirname(fileURLToPath(import.meta.url))
* @returns {Promise<void>}
*/
export const reportError = async function (error, config = {}) {
if (isCI) {
return
}

const globalConfig = await getGlobalConfig()

const options = JSON.stringify({
Expand Down

1 comment on commit 168f4e2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Package size: 305 MB

Please sign in to comment.