mirror of
https://gitea.com/actions/setup-deno.git
synced 2026-03-25 14:18:19 +00:00
Compare commits
17 Commits
v2.0.3
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fca7cc5afa | ||
|
|
6a293fc1a2 | ||
|
|
390061ada6 | ||
|
|
bdaa2e4f84 | ||
|
|
e4ff81cdb2 | ||
|
|
bac1f7276c | ||
|
|
2f7698fd11 | ||
|
|
ee64dd3200 | ||
|
|
3169cf993b | ||
|
|
fd6b0ad149 | ||
|
|
a1496dd8d9 | ||
|
|
95bbb87724 | ||
|
|
27e0043eff | ||
|
|
5e036d05d8 | ||
|
|
56da422736 | ||
|
|
1c4873e05d | ||
|
|
4b0db74aa8 |
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- "lts"
|
- "lts"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- 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@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- 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@v3
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- 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@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- 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@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- 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@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- 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@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup Deno
|
- name: Setup Deno
|
||||||
uses: ./
|
uses: ./
|
||||||
|
|||||||
89
README.md
89
README.md
@@ -4,73 +4,23 @@ Set up your GitHub Actions workflow with a specific version of Deno.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Latest stable for a major
|
The installed version is `v2.x` by default.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: denoland/setup-deno@v2
|
- 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
|
| Channel | Description |
|
||||||
- uses: denoland/setup-deno@v2
|
| -------- | -------------------------------- |
|
||||||
with:
|
| `latest` | Latest Stable release version |
|
||||||
deno-version: vx.x.x
|
| `lts` | Latest Long-Term-Support version |
|
||||||
```
|
| `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
|
||||||
@@ -78,6 +28,23 @@ Targets the latest major, minor and patch version of Deno.
|
|||||||
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
|
||||||
@@ -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.
|
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
|
```yaml
|
||||||
- uses: denoland/setup-deno@v2
|
- uses: denoland/setup-deno@v2
|
||||||
|
|||||||
@@ -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: "node20"
|
using: "node24"
|
||||||
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
12
deno.lock
generated
@@ -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@^20.16.5": "20.17.47",
|
"npm:@types/node@24": "24.12.0",
|
||||||
"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@20.17.47": {
|
"@types/node@24.12.0": {
|
||||||
"integrity": "sha512-3dLX0Upo1v7RvUimvxLeXqwrfyKxUINk0EAM83swP2mlSUcwV73sZy8XhNz8bcZ3VbsfQyC/y6jRdL5tgCNpDQ==",
|
"integrity": "sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"undici-types"
|
"undici-types"
|
||||||
]
|
]
|
||||||
@@ -1021,8 +1021,8 @@
|
|||||||
"quansync"
|
"quansync"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"undici-types@6.19.8": {
|
"undici-types@7.16.0": {
|
||||||
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
|
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="
|
||||||
},
|
},
|
||||||
"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@^20.16.5",
|
"npm:@types/node@24",
|
||||||
"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",
|
||||||
|
|||||||
@@ -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.3",
|
"version": "2.0.4",
|
||||||
"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": "^20.16.5",
|
"@types/node": "^24",
|
||||||
"@types/semver": "^7.7.0",
|
"@types/semver": "^7.7.0",
|
||||||
"tsdown": "0.10.1"
|
"tsdown": "0.10.1"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user