Azure / Azure/azure-rest-api-specs

[.github] Add retries around "npm ci"

Open
#36,713 0 comments 0 reactions 1 assignee Claimed by @mikeharder View on GitHub
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

Command `npm ci` fails often enough, it's probably worth wrapping it in a `retry(3)` loop.

Example:

```
$ npm ci
...
npm error code ECONNRESET
npm error network aborted
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
```

https://github.com/Azure/azure-rest-api-specs/actions/runs/16999992756/job/48199650548?pr=36712

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.