2021-04-10 07:39:22 +08:00
|
|
|
# setup-deno
|
2021-04-10 08:16:12 +08:00
|
|
|
|
2021-04-10 08:24:16 +08:00
|
|
|
Set up your GitHub Actions workflow with a specific version of Deno.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
### Latest stable
|
|
|
|
|
|
|
|
```yaml
|
2021-05-19 03:47:40 +08:00
|
|
|
- uses: denoland/setup-deno@v1
|
2021-04-10 08:24:16 +08:00
|
|
|
with:
|
|
|
|
deno-version: v1.x
|
|
|
|
```
|
|
|
|
|
|
|
|
### Specific stable
|
|
|
|
|
|
|
|
```yaml
|
2021-05-19 03:47:40 +08:00
|
|
|
- uses: denoland/setup-deno@v1
|
2021-04-10 08:24:16 +08:00
|
|
|
with:
|
|
|
|
deno-version: "1.8.2"
|
|
|
|
```
|
|
|
|
|
|
|
|
### Semver range
|
|
|
|
|
|
|
|
```yaml
|
2021-05-19 03:47:40 +08:00
|
|
|
- uses: denoland/setup-deno@v1
|
2021-04-10 08:24:16 +08:00
|
|
|
with:
|
|
|
|
deno-version: "~1.7"
|
|
|
|
```
|
|
|
|
|
|
|
|
### Latest canary
|
|
|
|
|
|
|
|
```yaml
|
2021-05-19 03:47:40 +08:00
|
|
|
- uses: denoland/setup-deno@v1
|
2021-04-10 08:24:16 +08:00
|
|
|
with:
|
|
|
|
deno-version: canary
|
|
|
|
```
|
|
|
|
|
|
|
|
### Specific canary
|
|
|
|
|
|
|
|
```yaml
|
2021-05-19 03:47:40 +08:00
|
|
|
- uses: denoland/setup-deno@v1
|
2021-04-10 08:24:16 +08:00
|
|
|
with:
|
|
|
|
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
|
|
|
|
```
|