17 Commits

Author SHA1 Message Date
Leo Kettmeir
667a34cdef 2.0.3 2026-03-18 17:50:12 +01:00
Nik B
3f17b4e915 feat: upgrade Node.js runtime from node20 to node24 (#123)
GitHub Actions is deprecating the Node.js 20 runtime, with enforcement
starting June 2, 2026. This updates the action to use node24 runtime.

- action.yml: change `using: "node20"` to `using: "node24"`
- package.json: bump `@types/node` from ^20.16.5 to ^24

Fixes #122

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 6a293fc1a2)
2026-03-18 17:50:12 +01:00
Ms2ger
06fd750fca docs: fix identifier for latest stable release (#115)
(cherry picked from commit 390061ada6)
2026-03-18 17:50:12 +01:00
Christian Svensson
587bed9d92 docs: condense Deno version information in one section (#100)
(cherry picked from commit bdaa2e4f84)
2026-03-18 17:50:11 +01:00
Christian Svensson
2af9d572ec docs: add lts as possible release-channel output (#99)
(cherry picked from commit e4ff81cdb2)
2026-03-18 17:50:11 +01:00
katayama8000
0c3e771df3 Update actions/checkout (#106)
(cherry picked from commit bac1f7276c)
2026-03-18 17:50:10 +01:00
Leo Kettmeir
e95548e56d 2.0.3 (#102)
(cherry picked from commit 2f7698fd11)
2025-05-15 21:45:37 +02:00
David Sherret
8273ddd773 fix: switch back to package.json as it's necessary for GH actions (#101)
(cherry picked from commit ee64dd3200)
2025-05-15 13:04:40 +02:00
David Sherret
609c005598 feat: include a hash of deno.lock files in the cache key automatically (#98)
(cherry picked from commit 3169cf993b)
2025-05-14 18:58:13 +02:00
Christian Svensson
aa0fea114b feat: add built-in caching via inputs (#89)
(cherry picked from commit fd6b0ad149)
2025-05-14 18:58:13 +02:00
Sebastian
db3496c46a feat: add "lts" version option (#97)
(cherry picked from commit a1496dd8d9)
2025-05-14 18:58:12 +02:00
Christian Svensson
d74ee56ed6 refactor: convert action to TS and bundle code (#95)
(cherry picked from commit 95bbb87724)
2025-05-14 18:58:06 +02:00
Leo Kettmeir
909cc5acb0 2.0.2 (#92)
(cherry picked from commit 27e0043eff)
2025-01-09 23:01:30 +01:00
Leo Kettmeir
003ac26627 refactor: use GitHub downloads for stable version download (#91)
(cherry picked from commit 5e036d05d8)
2025-01-09 23:01:30 +01:00
Ryo Nakamura
7c6ecb3883 feat: add problem matchers for deno lint (#62)
(cherry picked from commit 56da422736)
2025-01-09 23:01:29 +01:00
Leo Kettmeir
01524fade7 2.0.1 (#86)
(cherry picked from commit 1c4873e05d)
2024-10-09 10:05:15 +01:00
Leo Kettmeir
b571f8c14c fix: update README and tests (#85)
(cherry picked from commit 4b0db74aa8)
2024-10-09 10:05:06 +01:00
5 changed files with 44 additions and 77 deletions

View File

@@ -26,7 +26,7 @@ jobs:
- "lts"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./
@@ -54,7 +54,7 @@ jobs:
matrix:
deno-version-file: [.dvmrc, .tool-versions]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./
@@ -70,7 +70,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./
@@ -86,7 +86,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./
@@ -103,7 +103,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./
@@ -116,7 +116,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./
@@ -135,7 +135,7 @@ jobs:
build-diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Setup Deno
uses: ./

View File

@@ -4,73 +4,23 @@ Set up your GitHub Actions workflow with a specific version of Deno.
## Usage
### Latest stable for a major
The installed version is `v2.x` by default.
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
```
### Latest stable for any major
### Version from input
Targets the latest major, minor and patch version of Deno.
To pick the latest version of specific release channel, set `deno-version` to
one of the following:
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
```
### Specific stable
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: "1.8.2"
```
### Semver range
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: "~1.7"
```
### Latest canary
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: canary
```
### Specific canary
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
```
### Latest release candidate
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: rc
```
### Specific release candidate
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: 2.0.0-rc.1
```
### Latest LTS
| Channel | Description |
| -------- | -------------------------------- |
| `latest` | Latest Stable release version |
| `lts` | Latest Long-Term-Support version |
| `rc` | Latest Release-Candidate version |
| `canary` | Latest Canary release version |
```yaml
- uses: denoland/setup-deno@v2
@@ -78,6 +28,23 @@ Targets the latest major, minor and patch version of Deno.
deno-version: lts
```
A version can also be selected by providing a valid [Semver][sv] range or commit
hash.
**Examples**
- Specific versions: `"1.8.2"`, `2.0.0-rc.1`
- Semver range: `"^2"`, `"~1.7"`, `v2.1.x`, `vx.x.x`
- Commit hash: `e7b7129b7a92b7500ded88f8f5baa25a7f59e56e`
```yaml
- uses: denoland/setup-deno@v2
with:
deno-version: v2.1.x
```
[sv]: https://devhints.io/semver
### Version from file
The extension can also automatically read the version file from
@@ -113,7 +80,7 @@ This is useful when you want to install different versions of Deno side by side.
You can determine the release channel reading back the `release-channel` output.
Valid values are `stable`, `canary` and `rc`.
Valid values are `stable`, `lts`, `canary` and `rc`.
```yaml
- uses: denoland/setup-deno@v2

View File

@@ -26,7 +26,7 @@ outputs:
release-channel:
description: "The release channel of the installed version."
runs:
using: "node20"
using: "node24"
main: "dist/main.mjs"
post: "dist/post.mjs"
post-if: always()

12
deno.lock generated
View File

@@ -5,7 +5,7 @@
"npm:@actions/core@^1.11.1": "1.11.1",
"npm:@actions/glob@0.5": "0.5.0",
"npm:@actions/tool-cache@^2.0.2": "2.0.2",
"npm:@types/node@^20.16.5": "20.17.47",
"npm:@types/node@24": "24.12.0",
"npm:@types/semver@^7.7.0": "7.7.0",
"npm:semver@^7.7.1": "7.7.2",
"npm:tsdown@0.10.1": "0.10.1_rolldown@1.0.0-beta.8-commit.852c603__valibot@1.0.0",
@@ -511,8 +511,8 @@
"tslib@2.8.1"
]
},
"@types/node@20.17.47": {
"integrity": "sha512-3dLX0Upo1v7RvUimvxLeXqwrfyKxUINk0EAM83swP2mlSUcwV73sZy8XhNz8bcZ3VbsfQyC/y6jRdL5tgCNpDQ==",
"@types/node@24.12.0": {
"integrity": "sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==",
"dependencies": [
"undici-types"
]
@@ -1021,8 +1021,8 @@
"quansync"
]
},
"undici-types@6.19.8": {
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
"undici-types@7.16.0": {
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="
},
"undici@5.29.0": {
"integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==",
@@ -1087,7 +1087,7 @@
"npm:@actions/core@^1.11.1",
"npm:@actions/glob@0.5",
"npm:@actions/tool-cache@^2.0.2",
"npm:@types/node@^20.16.5",
"npm:@types/node@24",
"npm:@types/semver@^7.7.0",
"npm:semver@^7.7.1",
"npm:tsdown@0.10.1",

View File

@@ -1,7 +1,7 @@
{
"name": "setup-deno",
"description": "Set up Deno easily in GitHub Actions",
"version": "2.0.3",
"version": "2.0.4",
"author": "Deno Land Inc",
"license": "MIT",
"type": "module",
@@ -12,7 +12,7 @@
"@actions/tool-cache": "^2.0.2",
"semver": "^7.7.1",
"undici": "^7.8.0",
"@types/node": "^20.16.5",
"@types/node": "^24",
"@types/semver": "^7.7.0",
"tsdown": "0.10.1"
}