mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-11 19:06:43 +00:00
Compare commits
1 Commits
v2.0.1
...
improve_re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fd2a2a29d |
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -17,7 +17,6 @@ jobs:
|
||||
- macos-latest
|
||||
deno:
|
||||
- "1.x"
|
||||
- "2.x"
|
||||
- "1.33.1"
|
||||
- "canary"
|
||||
- "~1.32"
|
||||
|
||||
28
README.md
28
README.md
@@ -7,9 +7,9 @@ Set up your GitHub Actions workflow with a specific version of Deno.
|
||||
### Latest stable for a major
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v2.x
|
||||
deno-version: v1.x
|
||||
```
|
||||
|
||||
### Latest stable for any major
|
||||
@@ -17,7 +17,7 @@ Set up your GitHub Actions workflow with a specific version of Deno.
|
||||
Targets the latest major, minor and patch version of Deno.
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: vx.x.x
|
||||
```
|
||||
@@ -25,7 +25,7 @@ Targets the latest major, minor and patch version of Deno.
|
||||
### Specific stable
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: "1.8.2"
|
||||
```
|
||||
@@ -33,7 +33,7 @@ Targets the latest major, minor and patch version of Deno.
|
||||
### Semver range
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: "~1.7"
|
||||
```
|
||||
@@ -41,7 +41,7 @@ Targets the latest major, minor and patch version of Deno.
|
||||
### Latest canary
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: canary
|
||||
```
|
||||
@@ -49,7 +49,7 @@ Targets the latest major, minor and patch version of Deno.
|
||||
### Specific canary
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
|
||||
```
|
||||
@@ -57,7 +57,7 @@ Targets the latest major, minor and patch version of Deno.
|
||||
### Latest release candidate
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: rc
|
||||
```
|
||||
@@ -65,7 +65,7 @@ Targets the latest major, minor and patch version of Deno.
|
||||
### Specific release candidate
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: 2.0.0-rc.1
|
||||
```
|
||||
@@ -76,7 +76,7 @@ The extension can also automatically read the version file from
|
||||
[`.tool-versions`](https://asdf-vm.com/manage/configuration.html#tool-versions)
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version-file: .tool-versions
|
||||
```
|
||||
@@ -85,7 +85,7 @@ The extension can also automatically read the file from
|
||||
[`dvm`](https://github.com/justjavac/dvm).
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version-file: .dvmrc
|
||||
```
|
||||
@@ -95,7 +95,7 @@ The extension can also automatically read the file from
|
||||
This is useful when you want to install different versions of Deno side by side.
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: canary
|
||||
deno-binary-name: deno_canary
|
||||
@@ -108,7 +108,7 @@ You can determine the release channel reading back the `release-channel` output.
|
||||
Valid values are `stable`, `canary` and `rc`.
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
id: deno
|
||||
with:
|
||||
deno-version: canary
|
||||
@@ -126,7 +126,7 @@ For stable and rc versions, the output will be the regular semver version
|
||||
number.
|
||||
|
||||
```yaml
|
||||
- uses: denoland/setup-deno@v2
|
||||
- uses: denoland/setup-deno@v1
|
||||
id: deno
|
||||
with:
|
||||
deno-version: canary
|
||||
|
||||
@@ -7,7 +7,7 @@ branding:
|
||||
inputs:
|
||||
deno-version:
|
||||
description: The Deno version to install. Can be a semver version of a stable release, "canary" for the latest canary, or the Git hash of a specific canary release.
|
||||
default: "2.x"
|
||||
default: "1.x"
|
||||
deno-version-file:
|
||||
description: File containing the Deno version to install such as .dvmrc or .tool-versions.
|
||||
deno-binary-name:
|
||||
@@ -16,6 +16,8 @@ inputs:
|
||||
outputs:
|
||||
deno-version:
|
||||
description: "The Deno version that was installed."
|
||||
is-canary:
|
||||
description: "If the installed Deno version was a canary version."
|
||||
release-channel:
|
||||
description: "The release channel of the installed version."
|
||||
runs:
|
||||
|
||||
98
deno.lock
generated
Normal file
98
deno.lock
generated
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"version": "4",
|
||||
"specifiers": {
|
||||
"npm:@actions/core@^1.10.1": "1.10.1",
|
||||
"npm:@actions/tool-cache@^2.0.1": "2.0.1",
|
||||
"npm:@types/node@^20.16.5": "20.16.5",
|
||||
"npm:@types/semver@^7.5.8": "7.5.8",
|
||||
"npm:semver@^7.6.3": "7.6.3",
|
||||
"npm:undici@^6.19.8": "6.19.8"
|
||||
},
|
||||
"npm": {
|
||||
"@actions/core@1.10.1": {
|
||||
"integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
|
||||
"dependencies": [
|
||||
"@actions/http-client",
|
||||
"uuid@8.3.2"
|
||||
]
|
||||
},
|
||||
"@actions/exec@1.1.1": {
|
||||
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
|
||||
"dependencies": [
|
||||
"@actions/io"
|
||||
]
|
||||
},
|
||||
"@actions/http-client@2.2.3": {
|
||||
"integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==",
|
||||
"dependencies": [
|
||||
"tunnel",
|
||||
"undici@5.28.4"
|
||||
]
|
||||
},
|
||||
"@actions/io@1.1.3": {
|
||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
||||
},
|
||||
"@actions/tool-cache@2.0.1": {
|
||||
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
|
||||
"dependencies": [
|
||||
"@actions/core",
|
||||
"@actions/exec",
|
||||
"@actions/http-client",
|
||||
"@actions/io",
|
||||
"semver@6.3.1",
|
||||
"uuid@3.4.0"
|
||||
]
|
||||
},
|
||||
"@fastify/busboy@2.1.1": {
|
||||
"integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA=="
|
||||
},
|
||||
"@types/node@20.16.5": {
|
||||
"integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==",
|
||||
"dependencies": [
|
||||
"undici-types"
|
||||
]
|
||||
},
|
||||
"@types/semver@7.5.8": {
|
||||
"integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ=="
|
||||
},
|
||||
"semver@6.3.1": {
|
||||
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="
|
||||
},
|
||||
"semver@7.6.3": {
|
||||
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A=="
|
||||
},
|
||||
"tunnel@0.0.6": {
|
||||
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
|
||||
},
|
||||
"undici-types@6.19.8": {
|
||||
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
|
||||
},
|
||||
"undici@5.28.4": {
|
||||
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
||||
"dependencies": [
|
||||
"@fastify/busboy"
|
||||
]
|
||||
},
|
||||
"undici@6.19.8": {
|
||||
"integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g=="
|
||||
},
|
||||
"uuid@3.4.0": {
|
||||
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
|
||||
},
|
||||
"uuid@8.3.2": {
|
||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
|
||||
}
|
||||
},
|
||||
"workspace": {
|
||||
"packageJson": {
|
||||
"dependencies": [
|
||||
"npm:@actions/core@^1.10.1",
|
||||
"npm:@actions/tool-cache@^2.0.1",
|
||||
"npm:@types/node@^20.16.5",
|
||||
"npm:@types/semver@^7.5.8",
|
||||
"npm:semver@^7.6.3",
|
||||
"npm:undici@^6.19.8"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
2
main.mjs
2
main.mjs
@@ -39,6 +39,8 @@ async function main() {
|
||||
await install(version);
|
||||
|
||||
core.setOutput("deno-version", version.version);
|
||||
// TODO(@crowlKats): remove in 2.0
|
||||
core.setOutput("is-canary", version.kind === "canary");
|
||||
core.setOutput("release-channel", version.kind);
|
||||
|
||||
core.info("Installation complete.");
|
||||
|
||||
2
node_modules/.bin/semver
generated
vendored
2
node_modules/.bin/semver
generated
vendored
@@ -1 +1 @@
|
||||
../semver/bin/semver.js
|
||||
../.deno/semver@7.6.3/node_modules/semver/bin/semver.js
|
||||
2
node_modules/.bin/uuid
generated
vendored
2
node_modules/.bin/uuid
generated
vendored
@@ -1 +1 @@
|
||||
../uuid/dist/bin/uuid
|
||||
../.deno/uuid@8.3.2/node_modules/uuid/dist/bin/uuid
|
||||
0
node_modules/undici/lib/llhttp/.gitkeep → node_modules/.deno/.deno.lock
generated
vendored
0
node_modules/undici/lib/llhttp/.gitkeep → node_modules/.deno/.deno.lock
generated
vendored
1
node_modules/.deno/.deno.lock.poll
generated
vendored
Normal file
1
node_modules/.deno/.deno.lock.poll
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
BIN
node_modules/.deno/.setup-cache.bin
generated
vendored
Normal file
BIN
node_modules/.deno/.setup-cache.bin
generated
vendored
Normal file
Binary file not shown.
0
node_modules/.deno/@actions+core@1.10.1/.initialized
generated
vendored
Normal file
0
node_modules/.deno/@actions+core@1.10.1/.initialized
generated
vendored
Normal file
1
node_modules/.deno/@actions+core@1.10.1/node_modules/@actions/http-client
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+core@1.10.1/node_modules/@actions/http-client
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../@actions+http-client@2.2.3/node_modules/@actions/http-client
|
||||
1
node_modules/.deno/@actions+core@1.10.1/node_modules/uuid
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+core@1.10.1/node_modules/uuid
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../uuid@8.3.2/node_modules/uuid
|
||||
0
node_modules/.deno/@actions+exec@1.1.1/.initialized
generated
vendored
Normal file
0
node_modules/.deno/@actions+exec@1.1.1/.initialized
generated
vendored
Normal file
1
node_modules/.deno/@actions+exec@1.1.1/node_modules/@actions/io
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+exec@1.1.1/node_modules/@actions/io
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../@actions+io@1.1.3/node_modules/@actions/io
|
||||
0
node_modules/.deno/@actions+http-client@2.2.3/.initialized
generated
vendored
Normal file
0
node_modules/.deno/@actions+http-client@2.2.3/.initialized
generated
vendored
Normal file
1
node_modules/.deno/@actions+http-client@2.2.3/node_modules/tunnel
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+http-client@2.2.3/node_modules/tunnel
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../tunnel@0.0.6/node_modules/tunnel
|
||||
1
node_modules/.deno/@actions+http-client@2.2.3/node_modules/undici
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+http-client@2.2.3/node_modules/undici
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../undici@5.28.4/node_modules/undici
|
||||
0
node_modules/.deno/@actions+io@1.1.3/.initialized
generated
vendored
Normal file
0
node_modules/.deno/@actions+io@1.1.3/.initialized
generated
vendored
Normal file
0
node_modules/.deno/@actions+tool-cache@2.0.1/.initialized
generated
vendored
Normal file
0
node_modules/.deno/@actions+tool-cache@2.0.1/.initialized
generated
vendored
Normal file
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/core
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/core
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../@actions+core@1.10.1/node_modules/@actions/core
|
||||
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/exec
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/exec
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../@actions+exec@1.1.1/node_modules/@actions/exec
|
||||
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/http-client
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/http-client
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../@actions+http-client@2.2.3/node_modules/@actions/http-client
|
||||
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/io
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/@actions/io
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../@actions+io@1.1.3/node_modules/@actions/io
|
||||
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/semver
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/semver
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../semver@6.3.1/node_modules/semver
|
||||
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/uuid
generated
vendored
Symbolic link
1
node_modules/.deno/@actions+tool-cache@2.0.1/node_modules/uuid
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
../../uuid@3.4.0/node_modules/uuid
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user