GitHub Action
Setup Deno with cache
v1.2.0
Latest version
- Based on:
- Handles restoring and caching to
DENO_DIR
for you. - Annotates your source code from
deno lint --compact
output.
See the summary of the most recent Problem Matcher worflow for an example. - Works on Ubuntu, macOS & Windows runners.
- uses: nekowinston/setup-deno@v1
- uses: nekowinston/setup-deno@v1
with:
deno-version: "~1.38"
deno-json-path: ./subdirectory/deno.json
deno-lock-path: ./subdirectory/deno.lock
directory: ./subdirectory
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.
Seesetup-deno
for examples.
Defaults to1.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.
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.