https://github.com/nekowinston/setup-deno
🦕 Deno Setup action with integrated cache
https://github.com/nekowinston/setup-deno
cache deno github-actions problem-matcher typescript
Last synced: 10 months ago
JSON representation
🦕 Deno Setup action with integrated cache
- Host: GitHub
- URL: https://github.com/nekowinston/setup-deno
- Owner: nekowinston
- License: mit
- Archived: true
- Created: 2023-11-20T22:46:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T12:28:10.000Z (over 1 year ago)
- Last Synced: 2025-09-01T09:43:34.940Z (10 months ago)
- Topics: cache, deno, github-actions, problem-matcher, typescript
- Language: Nix
- Homepage:
- Size: 87.9 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-deno
[](https://github.com/nekowinston/setup-deno/actions/workflows/test.yml)
### Deno Setup action with integrated cache.
- Based on:
- [`denoland/setup-deno@v1`](https://github.com/denoland/setup-deno),
- [`actions/cache@v4`](https://github.com/actions/cache)
- 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](https://github.com/nekowinston/setup-deno/actions/workflows/problem-matcher.yml) for an example.
- Works on Ubuntu, macOS & Windows runners.
### Usage
#### Basic:
```yaml
- uses: nekowinston/setup-deno@v1
```
#### All options:
```yaml
- 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`](https://github.com/marketplace/actions/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.