Go to file
2024-10-09 02:01:02 -07:00
.github/workflows fix: update README and tests (#85) 2024-10-09 09:54:03 +01:00
node_modules fix: use npm install (#77) 2024-09-13 18:57:49 +02:00
src fix: update README and tests (#85) 2024-10-09 09:54:03 +01:00
.dvmrc feat: add .tool-versions and .dvmrc support (#61) 2024-07-05 15:33:22 +09:00
.tool-versions feat: add .tool-versions and .dvmrc support (#61) 2024-07-05 15:33:22 +09:00
action.yml feat: v2 (#82) 2024-10-09 01:37:44 -07:00
CODEOWNERS 1.4.1 (#69) 2024-09-03 10:36:21 +02:00
deno.json chore: migrate code to ESM (#73) 2024-09-13 17:15:41 +02:00
LICENSE Initial commit 2021-04-10 01:39:22 +02:00
main.mjs feat: v2 (#82) 2024-10-09 01:37:44 -07:00
package-lock.json fix: use npm install (#77) 2024-09-13 18:57:49 +02:00
package.json 2.0.1 (#86) 2024-10-09 02:01:02 -07:00
README.md fix: update README and tests (#85) 2024-10-09 09:54:03 +01:00

setup-deno

Set up your GitHub Actions workflow with a specific version of Deno.

Usage

Latest stable for a major

- uses: denoland/setup-deno@v2
  with:
    deno-version: v2.x

Latest stable for any major

Targets the latest major, minor and patch version of Deno.

- uses: denoland/setup-deno@v2
  with:
    deno-version: vx.x.x

Specific stable

- uses: denoland/setup-deno@v2
  with:
    deno-version: "1.8.2"

Semver range

- uses: denoland/setup-deno@v2
  with:
    deno-version: "~1.7"

Latest canary

- uses: denoland/setup-deno@v2
  with:
    deno-version: canary

Specific canary

- uses: denoland/setup-deno@v2
  with:
    deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e

Latest release candidate

- uses: denoland/setup-deno@v2
  with:
    deno-version: rc

Specific release candidate

- uses: denoland/setup-deno@v2
  with:
    deno-version: 2.0.0-rc.1

Version from file

The extension can also automatically read the version file from .tool-versions

- uses: denoland/setup-deno@v2
  with:
    deno-version-file: .tool-versions

The extension can also automatically read the file from dvm.

- uses: denoland/setup-deno@v2
  with:
    deno-version-file: .dvmrc

Specifying binary name

This is useful when you want to install different versions of Deno side by side.

- uses: denoland/setup-deno@v2
  with:
    deno-version: canary
    deno-binary-name: deno_canary

Determining the release channel

You can determine the release channel reading back the release-channel output.

Valid values are stable, canary and rc.

- uses: denoland/setup-deno@v2
  id: deno
  with:
    deno-version: canary

- run: echo "Deno release channel is ${{ steps.deno.outputs.release-channel }}"

Determining the installed version

You can determine the installed version reading back the deno-version output.

For canary versions, the output will be in the form 0.0.0-GIT_HASH.

For stable and rc versions, the output will be the regular semver version number.

- uses: denoland/setup-deno@v2
  id: deno
  with:
    deno-version: canary

- run: echo "Deno version is ${{ steps.deno.outputs.deno-version }}"