From 372f5a4bbade7c9d2a9d97a5cdca0c58a8511e41 Mon Sep 17 00:00:00 2001 From: oganexon Date: Sun, 13 Jun 2021 15:05:05 +0200 Subject: [PATCH 1/5] chore: :arrow_up: upgrade semver version --- Drakefile.ts | 9 +++++++++ deps.ts | 14 +++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Drakefile.ts b/Drakefile.ts index 12d8d4c..de300e4 100644 --- a/Drakefile.ts +++ b/Drakefile.ts @@ -1,5 +1,6 @@ import { desc, run, sh, task } from "https://x.nest.land/drake@1.4.4/mod.ts"; import { version } from "./src/version.ts"; +import { join } from "./deps.ts"; const encoder = new TextEncoder(); @@ -73,6 +74,14 @@ task("setup-github-actions", [], async function () { }); await process.status(); process.close(); + // https://github.com/denoland/setup-deno/issues/5 + const home = Deno.env.get("HOME") ?? // for linux / mac + Deno.env.get("USERPROFILE") ?? // for windows + "/"; + const path = encoder.encode(join(home, ".deno", "bin")); + const GITHUB_PATH = Deno.env.get("GITHUB_PATH"); + if (!GITHUB_PATH) throw new Error("Unable to get Github path"); + await Deno.writeFile(GITHUB_PATH, path, { append: true }); }); desc("Development tools. Should ideally be run before each commit."); diff --git a/deps.ts b/deps.ts index bf1ec7d..17407bd 100644 --- a/deps.ts +++ b/deps.ts @@ -46,9 +46,9 @@ export { Command, CompletionsCommand, HelpCommand, -} from "https://x.nest.land/cliffy@0.18.2/command/mod.ts"; +} from "https://x.nest.land/cliffy@0.19.1/command/mod.ts"; -export { string as stringType } from "https://x.nest.land/cliffy@0.18.2/flags/types/string.ts"; +export { string as stringType } from "https://x.nest.land/cliffy@0.19.1/flags/types/string.ts"; export { Checkbox, @@ -56,12 +56,12 @@ export { Input, List, Select, -} from "https://x.nest.land/cliffy@0.18.2/prompt/mod.ts"; +} from "https://x.nest.land/cliffy@0.19.1/prompt/mod.ts"; -export type { ITypeInfo } from "https://x.nest.land/cliffy@0.18.2/flags/types.ts"; +export type { ITypeInfo } from "https://x.nest.land/cliffy@0.19.1/flags/types.ts"; /**************** semver ****************/ -export * as semver from "https://deno.land/x/semver@v1.3.0/mod.ts"; +export * as semver from "https://deno.land/x/semver@v1.4.0/mod.ts"; /**************** base64 ****************/ export * as base64 from "https://denopkg.com/chiefbiiko/base64@v0.2.0/mod.ts"; @@ -72,9 +72,9 @@ export { NestLand, parseURL, UpdateNotifier, -} from "https://x.nest.land/hatcher@0.10.1/mod.ts"; +} from "https://x.nest.land/hatcher@0.10.2/mod.ts"; -export { isVersionUnstable } from "https://x.nest.land/hatcher@0.10.1/lib/utilities/utils.ts"; +export { isVersionUnstable } from "https://x.nest.land/hatcher@0.10.2/lib/utilities/utils.ts"; export { install as installHatcher } from "https://x.nest.land/hatcher@0.10.1/lib/cli.ts"; From e9274f14c8b4fe936e0af2c2028abd429dfdcd4c Mon Sep 17 00:00:00 2001 From: oganexon Date: Sun, 13 Jun 2021 15:07:54 +0200 Subject: [PATCH 2/5] fix: :bug: `wait` is unstable --- .github/workflows/lint.yml | 4 ++-- .github/workflows/ship.yml | 2 +- .github/workflows/test.yml | 2 +- Drakefile.ts | 2 +- src/version.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aa5f80c..b515394 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,7 +17,7 @@ jobs: uses: denolib/setup-deno@v2 - name: Setup Drake - run: deno run -A Drakefile.ts setup-github-actions + run: deno run -A --unstable Drakefile.ts setup-github-actions - name: Check formatting run: drake check-format @@ -36,7 +36,7 @@ jobs: uses: denolib/setup-deno@v2 - name: Setup Drake - run: deno run -A Drakefile.ts setup-github-actions + run: deno run -A --unstable Drakefile.ts setup-github-actions - name: Run linter run: drake lint diff --git a/.github/workflows/ship.yml b/.github/workflows/ship.yml index ed12771..b1dc288 100644 --- a/.github/workflows/ship.yml +++ b/.github/workflows/ship.yml @@ -20,7 +20,7 @@ jobs: uses: denolib/setup-deno@v2 - name: Setup Drake - run: deno run -A Drakefile.ts setup-github-actions + run: deno run -A --unstable Drakefile.ts setup-github-actions - name: Get eggs version run: drake get-version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6bd3d4c..2208881 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,7 +65,7 @@ jobs: deno-version: nightly - name: Setup Drake - run: deno run -A Drakefile.ts setup-github-actions + run: deno run -A --unstable Drakefile.ts setup-github-actions - name: Run tests run: drake test diff --git a/Drakefile.ts b/Drakefile.ts index de300e4..3948c3e 100644 --- a/Drakefile.ts +++ b/Drakefile.ts @@ -70,7 +70,7 @@ task("get-version", [], async function () { task("setup-github-actions", [], async function () { const process = Deno.run({ - cmd: ["deno", "install", "-A", "-n", "drake", "Drakefile.ts"], + cmd: ["deno", "install", "-A", "--unstable", "-n", "drake", "Drakefile.ts"], }); await process.status(); process.close(); diff --git a/src/version.ts b/src/version.ts index a165590..1bf7dc4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = "0.3.7"; +export const version = "0.3.8"; From 6a3646e0cbc0e84e6605f863f5704366c7fa2a1a Mon Sep 17 00:00:00 2001 From: oganexon Date: Sun, 13 Jun 2021 15:14:34 +0200 Subject: [PATCH 3/5] chore: :arrow_up: upgrade Hatcher --- deps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps.ts b/deps.ts index 17407bd..fc6e7ea 100644 --- a/deps.ts +++ b/deps.ts @@ -76,7 +76,7 @@ export { export { isVersionUnstable } from "https://x.nest.land/hatcher@0.10.2/lib/utilities/utils.ts"; -export { install as installHatcher } from "https://x.nest.land/hatcher@0.10.1/lib/cli.ts"; +export { install as installHatcher } from "https://x.nest.land/hatcher@0.10.2/lib/cli.ts"; /**************** analyzer ****************/ export type { DependencyTree } from "https://x.nest.land/analyzer@0.0.6/deno/tree.ts"; From 1a3887e146911b435d2ee43d205806ddfdec6919 Mon Sep 17 00:00:00 2001 From: oganexon Date: Sun, 13 Jun 2021 15:16:19 +0200 Subject: [PATCH 4/5] fix: :bug: `wait` instability --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2208881..71b2f02 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: uses: denolib/setup-deno@v2 - name: Setup Drake - run: deno run -A Drakefile.ts setup-github-actions + run: deno run -A --unstable Drakefile.ts setup-github-actions - name: Run tests run: drake test From c5bd1ab72bc291330ab3e22a0c3c3762c46fccf1 Mon Sep 17 00:00:00 2001 From: oganexon Date: Sun, 13 Jun 2021 15:46:25 +0200 Subject: [PATCH 5/5] chore: :memo: update README version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e0dcbe1..e9cce6a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ **Note: You need to upgrade to Deno v1.6.0 or newer in order to use our CLI.** ```shell script -deno install -Afq --unstable https://x.nest.land/eggs@0.3.6/eggs.ts +deno install -Afq --unstable https://x.nest.land/eggs@0.3.8/eggs.ts ``` For more information, see the [documentation](https://docs.nest.land/).