diff --git a/.github/workflows/deno-test.yml b/.github/workflows/deno-test.yml index ff98bf5..041ba5f 100644 --- a/.github/workflows/deno-test.yml +++ b/.github/workflows/deno-test.yml @@ -1,3 +1,8 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + # This workflow will install Deno then run `deno lint` and `deno test`. # For more information see: https://github.com/denoland/setup-deno @@ -18,16 +23,15 @@ jobs: steps: - name: Setup repo - uses: actions/checkout@v4.1.1 # use nodeJS 20 + uses: actions/checkout@v4 - name: Setup Deno - uses: denoland/setup-deno@v1.1.4 - # uses: denoland/setup-deno@9db7f66e8e16b5699a514448ce994936c63f0d54 + # uses: denoland/setup-deno@v1 + uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 with: - deno-version: v1.43.3 - # deno-version: v1.40.x # required due to usage of Deno.stdout.isTerminal() - # deno-version: v1.x + deno-version: v1.x + # Uncomment this step to verify the use of 'deno fmt' on each commit. - name: Verify formatting run: deno fmt --check diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml index ce1f624..27776a9 100644 --- a/.github/workflows/jsr-publish.yml +++ b/.github/workflows/jsr-publish.yml @@ -16,4 +16,4 @@ jobs: - uses: actions/checkout@v4 - name: Publish package - run: npx jsr publish \ No newline at end of file + run: npx jsr publish diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 8c8f514..05470b4 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -7,9 +7,9 @@ on: release: types: [created] workflow_dispatch: - inputs: + inputs: npm_version: - description: 'Version number to publish on NPM X.Y.Z' + description: "Version number to publish on NPM X.Y.Z" required: true permissions: contents: read @@ -32,7 +32,7 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ - + - name: Run linter run: deno lint diff --git a/deps.ts b/deps.ts index 25341a5..187fb1e 100644 --- a/deps.ts +++ b/deps.ts @@ -1,4 +1,3 @@ export { green, red, stripAnsiCode, yellow } from "jsr:@std/fmt@1.0.3/colors"; export { writeAll } from "jsr:@std/io@0.225.0/write-all"; export { exists } from "jsr:@std/fs@1.0.5"; - diff --git a/dev_deps.ts b/dev_deps.ts index 60d3fda..d60dcbd 100644 --- a/dev_deps.ts +++ b/dev_deps.ts @@ -1,5 +1 @@ -export { - assert, - assertEquals, - assertRejects, -} from "jsr:@std/assert@1.0.7"; +export { assert, assertEquals, assertRejects } from "jsr:@std/assert@1.0.7"; diff --git a/logger.ts b/logger.ts index ce9993f..f9ec5b8 100644 --- a/logger.ts +++ b/logger.ts @@ -103,7 +103,7 @@ export default class Logger { dir: string, options: fileLoggerOptions = {}, ): Promise { - const exist = await exists(dir, {isDirectory: true}); + const exist = await exists(dir, { isDirectory: true }); if (!exist) { stdout(`${this.getWarn()} Log folder does not exist`); try {