OptionalapiThe api url used to fetch the upload url.
Only required if self-hosting codecov.
Example: apiUrl: 'https://api.codecov.io'
Defaults to https://api.codecov.io.
OptionalbundleThe name for the bundle being built.
Required for uploading bundle analysis information.
The name must match the pattern /^[\w\d_:/@\.{}\[\]$-]+$/.
Example: bundleName: '@codecov/rollup-plugin'
OptionaldebugOption to enable debug logs for the plugin.
OptionaldryWhen enabled information will not be uploaded to Codecov.
Example: dryRun: true
Defaults to false
OptionalenableWhether you would like bundle analysis to be enabled. *
Example: enableBundleAnalysis: true
Defaults to false
OptionalgitOverride value for git service used for tokenless uploads. Using tokenless uploads is only supported for public repositories.
Note: If an uploadToken is provided you do not need to provide a gitService.
The value must be one of the following:
githubgitlabbitbucketgithub_enterprisegitlab_enterprisebitbucket_serverExample gitService: 'github'
OptionaloidcOptions for OIDC authentication.
OptionalgitHubOIDCTokenAudience?: stringThe OIDC audience to use for authentication.
If you're using a self hosted version of Codecov, you will need to provide the audience for the OIDC token.
Defaults to https://codecov.io
When using GitHub Actions this option can be enabled to use OIDC authentication, which removes the requirement for an upload token.
OpenID Connect (OIDC) is required to be configured in order to use GitHub OIDC.
Defaults to false
OptionalretryThe amount of times the upload function will retry to upload bundle analysis information.
Defaults to 3
OptionaltelemetryWhen enabled telemetry data will be sent to Codecov.
Example: telemetry: false
Defaults to true
OptionaluploadOverride values for passing custom information to API.
OptionaluploadThe upload token to use for uploading the bundle analysis information.
This field is required for uploading bundle analysis information in private repositories.
Alternatively if you're using GitHub Actions and have configured OIDC authentication you can
omit this field, and enable the oidc.useGitHubOIDC option.
This value can either be a global upload token or a repo token.
Configuration options for the Codecov bundler plugin.