GitHub Action
Setup Deno
v2.0.0
Latest version
Set up your GitHub Actions workflow with a specific version of Deno.
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
Targets the latest major, minor and patch version of Deno.
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- uses: denoland/setup-deno@v1
with:
deno-version: "1.8.2"
- uses: denoland/setup-deno@v1
with:
deno-version: "~1.7"
- uses: denoland/setup-deno@v1
with:
deno-version: canary
- uses: denoland/setup-deno@v1
with:
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
- uses: denoland/setup-deno@v1
with:
deno-version: rc
- uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.1
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
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
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 }}"
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 }}"