Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] Retry failed GitHub API requests
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed Apr 25, 2019
1 parent 3832a08 commit 01a2a79
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"npm-run-all": "^4.0.2"
},
"devDependencies": {
"@octokit/rest": "^15.15.1",
"@octokit/rest": "^16.0.0",
"@octokit/plugin-retry": "^2.2.0",
"aws-sdk": "^2.285.1",
"csscolorparser": "^1.0.2",
"ejs": "^2.4.1",
Expand Down
4 changes: 3 additions & 1 deletion scripts/check_binary_size.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env node

const jwt = require('jsonwebtoken');
const github = require('@octokit/rest')();
const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({
retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] }
})
const prettyBytes = require('pretty-bytes');
const fs = require('fs');

Expand Down
4 changes: 3 additions & 1 deletion scripts/publish_binary_size.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env node

const jwt = require('jsonwebtoken');
const github = require('@octokit/rest')();
const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({
retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] }
})
const zlib = require('zlib');
const AWS = require('aws-sdk');

Expand Down
4 changes: 3 additions & 1 deletion scripts/publish_doxygen_coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env node

const jwt = require('jsonwebtoken');
const github = require('@octokit/rest')();
const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({
retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] }
})
const zlib = require('zlib');
const AWS = require('aws-sdk');
const fs = require('fs');
Expand Down

0 comments on commit 01a2a79

Please sign in to comment.