1 Commits

Author SHA1 Message Date
Luca Casonato
8fd2a2a29d chore: improve readme 2024-09-13 17:16:30 +02:00
777 changed files with 148 additions and 325 deletions

View File

@@ -17,7 +17,6 @@ jobs:
- macos-latest - macos-latest
deno: deno:
- "1.x" - "1.x"
- "2.x"
- "1.33.1" - "1.33.1"
- "canary" - "canary"
- "~1.32" - "~1.32"

View File

@@ -7,9 +7,9 @@ Set up your GitHub Actions workflow with a specific version of Deno.
### Latest stable for a major ### Latest stable for a major
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: v2.x deno-version: v1.x
``` ```
### Latest stable for any major ### 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. Targets the latest major, minor and patch version of Deno.
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: vx.x.x deno-version: vx.x.x
``` ```
@@ -25,7 +25,7 @@ Targets the latest major, minor and patch version of Deno.
### Specific stable ### Specific stable
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: "1.8.2" deno-version: "1.8.2"
``` ```
@@ -33,7 +33,7 @@ Targets the latest major, minor and patch version of Deno.
### Semver range ### Semver range
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: "~1.7" deno-version: "~1.7"
``` ```
@@ -41,7 +41,7 @@ Targets the latest major, minor and patch version of Deno.
### Latest canary ### Latest canary
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: canary deno-version: canary
``` ```
@@ -49,7 +49,7 @@ Targets the latest major, minor and patch version of Deno.
### Specific canary ### Specific canary
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
``` ```
@@ -57,7 +57,7 @@ Targets the latest major, minor and patch version of Deno.
### Latest release candidate ### Latest release candidate
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: rc deno-version: rc
``` ```
@@ -65,7 +65,7 @@ Targets the latest major, minor and patch version of Deno.
### Specific release candidate ### Specific release candidate
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: 2.0.0-rc.1 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) [`.tool-versions`](https://asdf-vm.com/manage/configuration.html#tool-versions)
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version-file: .tool-versions deno-version-file: .tool-versions
``` ```
@@ -85,7 +85,7 @@ The extension can also automatically read the file from
[`dvm`](https://github.com/justjavac/dvm). [`dvm`](https://github.com/justjavac/dvm).
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version-file: .dvmrc 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. This is useful when you want to install different versions of Deno side by side.
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
with: with:
deno-version: canary deno-version: canary
deno-binary-name: deno_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`. Valid values are `stable`, `canary` and `rc`.
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
id: deno id: deno
with: with:
deno-version: canary deno-version: canary
@@ -126,7 +126,7 @@ For stable and rc versions, the output will be the regular semver version
number. number.
```yaml ```yaml
- uses: denoland/setup-deno@v2 - uses: denoland/setup-deno@v1
id: deno id: deno
with: with:
deno-version: canary deno-version: canary

View File

@@ -7,7 +7,7 @@ branding:
inputs: inputs:
deno-version: 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. 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: deno-version-file:
description: File containing the Deno version to install such as .dvmrc or .tool-versions. description: File containing the Deno version to install such as .dvmrc or .tool-versions.
deno-binary-name: deno-binary-name:
@@ -16,6 +16,8 @@ inputs:
outputs: outputs:
deno-version: deno-version:
description: "The Deno version that was installed." description: "The Deno version that was installed."
is-canary:
description: "If the installed Deno version was a canary version."
release-channel: release-channel:
description: "The release channel of the installed version." description: "The release channel of the installed version."
runs: runs:

98
deno.lock generated Normal file
View 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"
]
}
}
}

View File

@@ -39,6 +39,8 @@ async function main() {
await install(version); await install(version);
core.setOutput("deno-version", version.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.setOutput("release-channel", version.kind);
core.info("Installation complete."); core.info("Installation complete.");

2
node_modules/.bin/semver generated vendored
View File

@@ -1 +1 @@
../semver/bin/semver.js ../.deno/semver@7.6.3/node_modules/semver/bin/semver.js

2
node_modules/.bin/uuid generated vendored
View File

@@ -1 +1 @@
../uuid/dist/bin/uuid ../.deno/uuid@8.3.2/node_modules/uuid/dist/bin/uuid

1
node_modules/.deno/.deno.lock.poll generated vendored Normal file
View File

@@ -0,0 +1 @@
1

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
View File

View File

@@ -0,0 +1 @@
../../../@actions+http-client@2.2.3/node_modules/@actions/http-client

View File

@@ -0,0 +1 @@
../../uuid@8.3.2/node_modules/uuid

0
node_modules/.deno/@actions+exec@1.1.1/.initialized generated vendored Normal file
View File

View File

@@ -0,0 +1 @@
../../../@actions+io@1.1.3/node_modules/@actions/io

View File

View File

@@ -0,0 +1 @@
../../tunnel@0.0.6/node_modules/tunnel

View File

@@ -0,0 +1 @@
../../undici@5.28.4/node_modules/undici

0
node_modules/.deno/@actions+io@1.1.3/.initialized generated vendored Normal file
View File

View File

View File

@@ -0,0 +1 @@
../../../@actions+core@1.10.1/node_modules/@actions/core

View File

@@ -0,0 +1 @@
../../../@actions+exec@1.1.1/node_modules/@actions/exec

View File

@@ -0,0 +1 @@
../../../@actions+http-client@2.2.3/node_modules/@actions/http-client

View File

@@ -0,0 +1 @@
../../../@actions+io@1.1.3/node_modules/@actions/io

View File

@@ -0,0 +1 @@
../../semver@6.3.1/node_modules/semver

View File

@@ -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