11 Commits

Author SHA1 Message Date
Leo Kettmeir
85fe4a0a5c 2.0.3 2025-05-15 13:06:00 +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 77 additions and 44 deletions

View File

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

View File

@@ -4,23 +4,73 @@ Set up your GitHub Actions workflow with a specific version of Deno.
## Usage ## Usage
The installed version is `v2.x` by default. ### Latest stable for a major
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v2
with:
deno-version: v2.x
``` ```
### Version from input ### Latest stable for any major
To pick the latest version of specific release channel, set `deno-version` to Targets the latest major, minor and patch version of Deno.
one of the following:
| Channel | Description | ```yaml
| -------- | -------------------------------- | - uses: denoland/setup-deno@v2
| `latest` | Latest Stable release version | with:
| `lts` | Latest Long-Term-Support version | deno-version: vx.x.x
| `rc` | Latest Release-Candidate version | ```
| `canary` | Latest Canary release version |
### 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
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v2
@@ -28,23 +78,6 @@ one of the following:
deno-version: lts 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 ### Version from file
The extension can also automatically read the version file from The extension can also automatically read the version file from
@@ -80,7 +113,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. You can determine the release channel reading back the `release-channel` output.
Valid values are `stable`, `lts`, `canary` and `rc`. Valid values are `stable`, `canary` and `rc`.
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v2

View File

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

12
deno.lock generated
View File

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

View File

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