Skip to content

Commit

Permalink
update plugins deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed May 28, 2022
1 parent 69df8d4 commit f0fcdfe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
18 changes: 9 additions & 9 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// std
import "https://deno.land/[email protected]/dotenv/load.ts";
export * as log from "https://deno.land/[email protected]/log/mod.ts";
export * as colors from "https://deno.land/[email protected]/fmt/colors.ts";
export { readLines } from "https://deno.land/[email protected]/io/mod.ts";
export { join } from "https://deno.land/[email protected]/path/mod.ts";
export { ensureFile, exists } from "https://deno.land/[email protected]/fs/mod.ts";
export { delay } from "https://deno.land/[email protected]/async/delay.ts";

// others
export { Spinner, wait } from "https://deno.land/x/[email protected]/mod.ts";

export type { Commit as CCCommit } from "https://deno.land/x/[email protected]/mod.ts";
export { parse as ccparse } from "https://deno.land/x/[email protected]/mod.ts";

export * as semver from "https://deno.land/x/[email protected]/mod.ts";
export * as ini from "https://deno.land/x/[email protected]/mod.ts";

export * as colors from "https://deno.land/[email protected]/fmt/colors.ts";

export { readLines } from "https://deno.land/[email protected]/io/mod.ts";
export { join } from "https://deno.land/[email protected]/path/mod.ts";
export { ensureFile, exists } from "https://deno.land/[email protected]/fs/mod.ts";
export { delay } from "https://deno.land/[email protected]/async/delay.ts";

import "https://deno.land/[email protected]/dotenv/load.ts";
4 changes: 2 additions & 2 deletions plugins/github/deps.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as log from "https://deno.land/x/branch@0.1.5/mod.ts";
export { delay } from "https://deno.land/std@0.88.0/async/delay.ts";
export * as log from "https://deno.land/std@0.141.0/log/mod.ts";
export { delay } from "https://deno.land/std@0.141.0/async/delay.ts";
8 changes: 3 additions & 5 deletions plugins/github/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@ import {
import * as gh from "./api.ts";
import { ReleaseError } from "../../src/error.ts";

const logger = log.create("gh");

const GITHUB_TOKEN = "GITHUB_TOKEN";

export const github = <ReleasePlugin> {
name: "GitHub",
async setup(): Promise<void> {
const token = Deno.env.get(GITHUB_TOKEN);
if (!token) {
logger.warning("GitHub token not found!");
logger.info("Please set your github token as environment variable");
log.warning("GitHub token not found!");
log.info("Please set your github token as environment variable");
Deno.exit(0);
}
const res = await gh.verifyToken(token);
if (!res.ok || !token) {
logger.critical(`GitHub token is not valid! (err: ${res.err})`);
log.critical(`GitHub token is not valid! (err: ${res.err})`);
Deno.exit(1);
}
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/regex/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { join } from "https://deno.land/std@0.119.0/path/mod.ts";
export { join } from "https://deno.land/std@0.141.0/path/mod.ts";
4 changes: 2 additions & 2 deletions plugins/versionFile/deps.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { join } from "https://deno.land/std@0.119.0/path/mod.ts";
export { EOL } from "https://deno.land/std@0.119.0/fs/mod.ts";
export { join } from "https://deno.land/std@0.141.0/path/mod.ts";
export { EOL } from "https://deno.land/std@0.141.0/fs/mod.ts";

0 comments on commit f0fcdfe

Please sign in to comment.