Setup Deno action

August 21, 2025 ยท View on GitHub

This action sets up Deno for use in actions. The version of deno defaults to v2.x.

Action inputs

InputDescriptionDefault
deno_version_fileThe path to the file containing the Deno version to use.''
deno_versionThe specific Deno version to use.'v2.x'
install_allow_scriptsComma-separated list of scripts to allow when running the deno i --allow-scripts command.''

Example usage

name: Setup Deno

on:
  push:
    branches:
      - main
    pull_request:

jobs:
  setup_pnpm:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

      - name: Setup Deno
        uses: dfinity/ci-tools/actions/setup-deno@main