Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

Install Deno

v1.1.0

Install Deno

package

Install Deno

GitHub Action to set up Deno

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install Deno

uses: maximousblk/setup-deno@v1.1.0

Learn more about this action in maximousblk/setup-deno

Choose a version

Setup Deno

GitHub Action to set up Deno.

Usage

Inputs

  • version - Deno version.
    • values: <semver>, <commit>, 'canary' or 'latest'
    • default: 'latest'

Outputs

  • version - tag of the installed Deno
  • deno_path - path of the installed deno

Examples

Basic:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Setup Deno
        uses: maximousblk/setup-deno@v1 # Installs latest version

      - run: deno -V

Matrix:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        deno: ['v1.7.0', 'v1.7.x', '1.x', '1', 'latest', 'canary']

steps:
  - uses: actions/checkout@v2

  - name: Setup Deno (${{ matrix.deno }})
    uses: maximousblk/setup-deno@v1
    with:
      version: ${{ matrix.deno }}

  - run: deno -V

License

This project is licensed under The MIT License