mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
typo in type name
This commit is contained in:
parent
85bb079141
commit
ca93e708e3
4 changed files with 6 additions and 6 deletions
|
@ -19,7 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const fs_1 = require("fs");
|
const fs_1 = require("fs");
|
||||||
const mime_1 = require("mime");
|
const mime_1 = require("mime");
|
||||||
const path_1 = require("path");
|
const path_1 = require("path");
|
||||||
class GitHubReleaseer {
|
class GitHubReleaser {
|
||||||
constructor(github) {
|
constructor(github) {
|
||||||
this.github = github;
|
this.github = github;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class GitHubReleaseer {
|
||||||
return this.github.paginate.iterator(this.github.repos.listReleases.endpoint.merge(params));
|
return this.github.paginate.iterator(this.github.repos.listReleases.endpoint.merge(params));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.GitHubReleaseer = GitHubReleaseer;
|
exports.GitHubReleaser = GitHubReleaser;
|
||||||
exports.asset = (path) => {
|
exports.asset = (path) => {
|
||||||
return {
|
return {
|
||||||
name: path_1.basename(path),
|
name: path_1.basename(path),
|
||||||
|
|
|
@ -22,7 +22,7 @@ function run() {
|
||||||
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
||||||
}
|
}
|
||||||
const gh = new github_2.GitHub(config.github_token);
|
const gh = new github_2.GitHub(config.github_token);
|
||||||
let rel = yield github_1.release(config, new github_1.GitHubReleaseer(gh));
|
let rel = yield github_1.release(config, new github_1.GitHubReleaser(gh));
|
||||||
if (config.input_files) {
|
if (config.input_files) {
|
||||||
util_1.paths(config.input_files).forEach((path) => __awaiter(this, void 0, void 0, function* () {
|
util_1.paths(config.input_files).forEach((path) => __awaiter(this, void 0, void 0, function* () {
|
||||||
yield github_1.upload(gh, rel.upload_url, path);
|
yield github_1.upload(gh, rel.upload_url, path);
|
||||||
|
|
|
@ -39,7 +39,7 @@ export interface Releaser {
|
||||||
}): AsyncIterableIterator<{ data: Release[] }>;
|
}): AsyncIterableIterator<{ data: Release[] }>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class GitHubReleaseer {
|
export class GitHubReleaser {
|
||||||
github: GitHub;
|
github: GitHub;
|
||||||
constructor(github: GitHub) {
|
constructor(github: GitHub) {
|
||||||
this.github = github;
|
this.github = github;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { paths, parseConfig, isTag } from "./util";
|
import { paths, parseConfig, isTag } from "./util";
|
||||||
import { release, upload, GitHubReleaseer } from "./github";
|
import { release, upload, GitHubReleaser } from "./github";
|
||||||
import { setFailed } from "@actions/core";
|
import { setFailed } from "@actions/core";
|
||||||
import { GitHub } from "@actions/github";
|
import { GitHub } from "@actions/github";
|
||||||
import { env } from "process";
|
import { env } from "process";
|
||||||
|
@ -11,7 +11,7 @@ async function run() {
|
||||||
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
throw new Error(`⚠️ GitHub Releases requires a tag`);
|
||||||
}
|
}
|
||||||
const gh = new GitHub(config.github_token);
|
const gh = new GitHub(config.github_token);
|
||||||
let rel = await release(config, new GitHubReleaseer(gh));
|
let rel = await release(config, new GitHubReleaser(gh));
|
||||||
if (config.input_files) {
|
if (config.input_files) {
|
||||||
paths(config.input_files).forEach(async path => {
|
paths(config.input_files).forEach(async path => {
|
||||||
await upload(gh, rel.upload_url, path);
|
await upload(gh, rel.upload_url, path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue