An open API service indexing awesome lists of open source software.

https://github.com/maximousblk/setup-deno

GitHub Action to set up Deno
https://github.com/maximousblk/setup-deno

deno github-actions javascript typescript

Last synced: 5 months ago
JSON representation

GitHub Action to set up Deno

Awesome Lists containing this project

README

          

# Setup Deno

GitHub Action to set up Deno.

# Usage

### Inputs

- `deno-version` - Deno version.
- values: ``, ``, `'canary'` or `'latest'`
- default: `'latest'`

### Outputs

- `version` - tag of the installed Deno binary
- `deno_path` - path of the installed Deno binary

# Examples

Basic:

```yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Deno
uses: maximousblk/setup-deno@v2 # Installs latest version

- run: deno -V
```

Matrix:

```yaml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ['v1.23.0', 'v1.23.x', '1.x', '1', 'latest', 'canary']

steps:
- uses: actions/checkout@v3

- name: Setup Deno (${{ matrix.deno }})
uses: maximousblk/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}

- run: deno -V
```

## License

This project is licensed under [The MIT License](./LICENSE)