Skip to content

Commit

Permalink
Don't put file versions at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Sep 2, 2024
1 parent 916edb9 commit cce4306
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ 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

```yaml
Expand Down Expand Up @@ -67,3 +53,21 @@ Targets the latest major, minor and patch version of Deno.
with:
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
```
### Version from file
The extension can also automatically read the version file from [`.tool-versions`](https://asdf-vm.com/manage/configuration.html#tool-versions)

```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .tool-versions
```

The extension can also automatically read the file from [`dvm`](https://github.com/justjavac/dvm).

```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .dvmrc
```

0 comments on commit cce4306

Please sign in to comment.