17 Commits

Author SHA1 Message Date
Leo Kettmeir
ff4860f9d7 2.0.4 (#125) 2026-03-18 17:33:32 +01:00
Nik B
6a293fc1a2 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>
2026-03-17 12:09:57 +01:00
Ms2ger
390061ada6 docs: fix identifier for latest stable release (#115) 2026-02-13 16:28:47 +01:00
Christian Svensson
bdaa2e4f84 docs: condense Deno version information in one section (#100) 2025-11-27 01:39:06 +01:00
Christian Svensson
e4ff81cdb2 docs: add lts as possible release-channel output (#99) 2025-11-27 01:37:33 +01:00
katayama8000
bac1f7276c Update actions/checkout (#106) 2025-11-04 23:43:14 +09:00
Leo Kettmeir
2f7698fd11 2.0.3 (#102) 2025-05-15 21:44:43 +02:00
David Sherret
ee64dd3200 fix: switch back to package.json as it's necessary for GH actions (#101) 2025-05-15 00:33:36 +02:00
David Sherret
3169cf993b feat: include a hash of deno.lock files in the cache key automatically (#98) 2025-05-13 12:53:56 -04:00
Christian Svensson
fd6b0ad149 feat: add built-in caching via inputs (#89) 2025-05-12 12:53:44 -04:00
Sebastian
a1496dd8d9 feat: add "lts" version option (#97) 2025-05-12 12:23:36 -04:00
Christian Svensson
95bbb87724 refactor: convert action to TS and bundle code (#95) 2025-05-12 12:14:45 -04:00
Leo Kettmeir
27e0043eff 2.0.2 (#92) 2025-01-09 14:00:34 -08:00
Leo Kettmeir
5e036d05d8 refactor: use GitHub downloads for stable version download (#91) 2025-01-07 01:42:09 -08:00
Ryo Nakamura
56da422736 feat: add problem matchers for deno lint (#62) 2024-12-05 17:29:54 -08:00
Leo Kettmeir
1c4873e05d 2.0.1 (#86) 2024-10-09 02:01:02 -07:00
Leo Kettmeir
4b0db74aa8 fix: update README and tests (#85) 2024-10-09 09:54:03 +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"
}