Skip to content
fast-forward

GitHub Action

Setup Deno with cache

v1.2.0 Latest version

Setup Deno with cache

fast-forward

Setup Deno with cache

Composite action wrapper around denoland/setup-deno and actions/cache to setup Deno and cache its dependencies

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Deno with cache

uses: nekowinston/[email protected]

Learn more about this action in nekowinston/setup-deno

Choose a version

setup-deno

Test the action

Deno Setup action with integrated cache.

Usage

Basic:

- uses: nekowinston/setup-deno@v1

All options:

- uses: nekowinston/setup-deno@v1
  with:
    deno-version: "~1.38"
    deno-json-path: ./subdirectory/deno.json
    deno-lock-path: ./subdirectory/deno.lock
    directory: ./subdirectory

Inputs

  • deno-version:
    The Deno version to install. Can be a semver version of a stable release, 'canary' for the latest canary, or the Git hash of a specific canary release.
    See setup-deno for examples.
    Defaults to 1.x.
  • deno-json-path:
    The path to the Deno config file to use for caching.
    Defaults to an empty string, using the built-in CLI default.
  • deno-lock-path:
    The path to the lock file to use for caching.
    Defaults to ./deno.lock.
  • directory:
    The path to the scripts to cache. This can be useful if Deno is only part of your repo, and stored in a subdirectory.
    Defaults to the repo root.

Outputs:

  • deno-version: The Deno version that was installed.
  • is-canary: If the installed Deno version was a canary version.
  • cache-hit: A boolean value to indicate an exact match was found for the key.