denolib / setup-deno

Set up your GitHub Actions workflow with a specific version of deno
https://github.com/marketplace/actions/setup-deno-environment
MIT License
181 stars 16 forks source link

Add ~/.deno/lib/ To PATH #67

Closed SteelAlloy closed 3 years ago

SteelAlloy commented 4 years ago

When installing a deno module globally, I am unable to use the exec in other steps

- run: deno install -A -n foo mod.ts

- run: foo
 /home/runner/work/_temp/013c1727-ed4e-4aa8-aca7-9e9ae2257aff.sh: line 1: foo: command not found

However it works if I add /.deno/bin/ to the PATH it works On Linux:

- run: |
  deno install -A -n foo mod.ts
  echo "::add-path::/home/runner/.deno/bin"

- run: foo

Is it possible to add /.deno/bin/ to the PATH by default on the action?