Skip to content

nekowinston/setup-deno

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.