setup-deno/README.md

70 lines
986 B
Markdown
Raw Normal View History

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
### Version from file
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .dvmrc
```
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .tool-versions
```
### Latest stable for a major
2021-04-10 08:24:16 +08:00
```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
```
### Latest stable for any major
Targets the latest major, minor and patch version of Deno.
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
```
2021-04-10 08:24:16 +08:00
### 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
```