11 Commits
main ... v2

Author SHA1 Message Date
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
2 changed files with 68 additions and 35 deletions

View File

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

View File

@@ -4,23 +4,73 @@ Set up your GitHub Actions workflow with a specific version of Deno.
## Usage
The installed version is `v2.x` by default.
### Latest stable for a major
```yaml
- 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
one of the following:
Targets the latest major, minor and patch version of Deno.
| Channel | Description |
| -------- | -------------------------------- |
| `stable` | 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
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
```yaml
- uses: denoland/setup-deno@v2
@@ -28,23 +78,6 @@ one of the following:
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
@@ -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.
Valid values are `stable`, `lts`, `canary` and `rc`.
Valid values are `stable`, `canary` and `rc`.
```yaml
- uses: denoland/setup-deno@v2