mirror of
https://gitea.com/actions/setup-deno.git
synced 2026-03-25 06:08:20 +00:00
Compare commits
11 Commits
v2.0.4
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85fe4a0a5c | ||
|
|
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"
|
||||
|
||||
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: ./
|
||||
|
||||
89
README.md
89
README.md
@@ -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 |
|
||||
| -------- | -------------------------------- |
|
||||
| `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
|
||||
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
|
||||
|
||||
@@ -26,7 +26,7 @@ outputs:
|
||||
release-channel:
|
||||
description: "The release channel of the installed version."
|
||||
runs:
|
||||
using: "node24"
|
||||
using: "node20"
|
||||
main: "dist/main.mjs"
|
||||
post: "dist/post.mjs"
|
||||
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/glob@0.5": "0.5.0",
|
||||
"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: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@24.12.0": {
|
||||
"integrity": "sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==",
|
||||
"@types/node@20.17.47": {
|
||||
"integrity": "sha512-3dLX0Upo1v7RvUimvxLeXqwrfyKxUINk0EAM83swP2mlSUcwV73sZy8XhNz8bcZ3VbsfQyC/y6jRdL5tgCNpDQ==",
|
||||
"dependencies": [
|
||||
"undici-types"
|
||||
]
|
||||
@@ -1021,8 +1021,8 @@
|
||||
"quansync"
|
||||
]
|
||||
},
|
||||
"undici-types@7.16.0": {
|
||||
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="
|
||||
"undici-types@6.19.8": {
|
||||
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
|
||||
},
|
||||
"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@24",
|
||||
"npm:@types/node@^20.16.5",
|
||||
"npm:@types/semver@^7.7.0",
|
||||
"npm:semver@^7.7.1",
|
||||
"npm:tsdown@0.10.1",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "setup-deno",
|
||||
"description": "Set up Deno easily in GitHub Actions",
|
||||
"version": "2.0.4",
|
||||
"version": "2.0.3",
|
||||
"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": "^24",
|
||||
"@types/node": "^20.16.5",
|
||||
"@types/semver": "^7.7.0",
|
||||
"tsdown": "0.10.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user