retry-on-ci

0.1.2 • Public • Published

retry-on-ci

This is an npm package you can use in npm scripts to retry commands, but only in a CI environment.

{
  "scripts": {
    "test": "retry-on-ci jest"
  }
}

Environment variables

  • CI - Set to true when running in a CI environment. Most CI environments such as GitHub Actions set this by default.
  • CI_RETRIES - Number of retries, defaults to 3
  • CI_TIMEOUT- Timeout for command, defaults to 10 minutes

Readme

Keywords

Package Sidebar

Install

npm i retry-on-ci

Version

0.1.2

License

MIT

Unpacked Size

16.9 kB

Total Files

14

Last publish

Collaborators

  • anaisbetts