reintroduce octokit retry and throttling plugins

This commit is contained in:
softprops
2021-12-05 23:19:25 -05:00
parent 44946dc88f
commit 040bca2f2d
5 changed files with 494 additions and 87 deletions

View File

@@ -1,11 +1,11 @@
import fetch from "node-fetch";
import { GitHub } from "@actions/github/lib/utils";
import { Octokit } from "@octokit/action";
import { Config, isTag, releaseBody } from "./util";
import { statSync, readFileSync } from "fs";
import { getType } from "mime";
import { basename } from "path";
type GitHub = InstanceType<typeof GitHub>;
type GitHub = InstanceType<typeof Octokit>;
export interface ReleaseAsset {
name: string;