DenoDDeno
Powered by
NestarZN
Denoβ€’14mo ago
NestarZ

deno-version v2.x and Deno.exit(0) not working as expected in GitHub Actions

name: Install Deno
uses: denoland/setup-deno@v2
with:
  deno-version: v2.x 
name: Install Deno
uses: denoland/setup-deno@v2
with:
  deno-version: v2.x 


I'm encountering an issue where Deno.exit(0) within my GitHub Actions workflow fails when deno-version is set to v2.x.

Expected Behavior:

Deno.exit(0) should successfully terminate the job.
Actual Behavior:

Deno.exit(0) does not terminate the job as expected.
Workaround:

Setting deno-version: v2.1.4 resolves the issue.
Questions:

Is this a known issue with the setup-deno action and deno-version: v2.x?
Are there any specific configurations or workarounds for this issue besides pinning to a specific minor version?
Is there a more reliable way to terminate jobs within GitHub Actions using Deno.exit(0)?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

deno.run not working as expected
ChilliSniffCChilliSniff / help
4y ago
Deno Fresh deployment failing in Github Actions
Captain π—•π—˜π—˜π—™πŸ₯©CCaptain π—•π—˜π—˜π—™πŸ₯© / help
11mo ago
Deploying WASM via Deno Deploy Github Actions
BunburyBBunbury / help
3y ago
'Deno.exit' is not allowed in this context.
SheikSSheik / help
2y ago