From cce4306590fd8d29c416a8e4cba4151be7e1dbac Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 2 Sep 2024 15:46:47 +0200 Subject: [PATCH] Don't put file versions at the top --- README.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 915c375..21d951c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 +```