Merged
Conversation
Implement the "lts" version option for Deno setup. * **action.yml** - Add "lts" as a valid option for the `deno-version` input. * **README.md** - Add usage example for the "lts" version option. * **src/version.mjs** - Add logic to handle the "lts" version option in `parseVersionRange` function. - Add `resolveLTS` function to fetch the latest lts version. - Update `resolveVersion` function to handle "lts" version option. * **.github/workflows/test.yml** - Add a test for the "lts" version option. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/denoland/setup-deno?shareId=XXXX-XXXX-XXXX-XXXX).
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the "lts" option to the Deno setup action by extending version parsing and resolution logic, updating configuration files, and adding relevant tests.
- Update JSDoc typedefs and version range parsing in src/version.mjs
- Introduce a new resolveLTS function and extend install logic for the "lts" channel
- Update action description, README example, and tests to include the new option
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/version.mjs | Added "lts" support in version parsing and resolution with a new resolveLTS function |
| src/install.mjs | Added a corresponding case for "lts" in installation process |
| action.yml | Updated input description to include "lts" option |
| README.md | Added usage example for the "lts" option |
| .github/workflows/test.yml | Added test case for the "lts" option |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Closed
crowlKats
pushed a commit
that referenced
this pull request
May 15, 2025
(cherry picked from commit a1496dd)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement the "lts" version option for Deno setup.
action.yml
deno-versioninput.README.md
src/version.mjs
parseVersionRangefunction.resolveLTSfunction to fetch the latest lts version.resolveVersionfunction to handle "lts" version option..github/workflows/test.yml
For more details, open the Copilot Workspace session.