Go to file
crowlkats 70768ed567
fmt
2024-10-02 05:16:43 +02:00
.github/workflows chore: migrate code to ESM (#73) 2024-09-13 17:15:41 +02:00
node_modules fix: use npm install (#77) 2024-09-13 18:57:49 +02:00
src chore: improve readme (#74) 2024-09-13 17:32:16 +02: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 chore: migrate code to ESM (#73) 2024-09-13 17:15:41 +02: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 fmt 2024-10-02 05:16:43 +02:00
package-lock.json fix: use npm install (#77) 2024-09-13 18:57:49 +02:00
package.json feat: add warning for setup-deno v1 2024-10-02 05:13:56 +02:00
README.md chore: improve readme (#74) 2024-09-13 17:32:16 +02: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@v1
  with:
    deno-version: v1.x

Latest stable for any major

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

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

Specific stable

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

Semver range

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

Latest canary

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

Specific canary

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

Latest release candidate

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

Specific release candidate

- uses: denoland/setup-deno@v1
  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@v1
  with:
    deno-version-file: .tool-versions

The extension can also automatically read the file from dvm.

- uses: denoland/setup-deno@v1
  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@v1
  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@v1
  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@v1
  id: deno
  with:
    deno-version: canary

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